diff options
author | Bruno Haible <bruno@clisp.org> | 2010-09-29 13:17:43 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-09-29 13:17:43 +0200 |
commit | 3215ba10fd6dcff44bb0f6748b161f56dcd28d01 (patch) | |
tree | e27b6bac1e910cb82f1794359744589dae261ff7 /modules/sys_wait | |
parent | 89c936487278c4567c724b3ec826873f46f72c5a (diff) | |
download | gnulib-3215ba10fd6dcff44bb0f6748b161f56dcd28d01.tar.gz |
New module 'waitpid'.
* lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
* lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
Don't include <process.h>.
(waitpid): Declare only, using modern idiom.
* m4/waitpid.m4: New file.
* m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
* modules/waitpid: New file.
* modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
(Makefile.am): Update.
Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
Diffstat (limited to 'modules/sys_wait')
-rw-r--r-- | modules/sys_wait | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/sys_wait b/modules/sys_wait index 376b08c2c8..2c82029711 100644 --- a/modules/sys_wait +++ b/modules/sys_wait @@ -6,7 +6,10 @@ lib/sys_wait.in.h m4/sys_wait_h.m4 Depends-on: +c++defs include_next +warn-on-use +waitpid configure.ac: gl_SYS_WAIT_H @@ -17,13 +20,15 @@ BUILT_SOURCES += sys/wait.h # We need the following in order to create <sys/wait.h> when the system # has one that is incomplete. -sys/wait.h: sys_wait.in.h +sys/wait.h: sys_wait.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) $(AM_V_at)$(MKDIR_P) sys $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_SYS_WAIT_H''@|$(NEXT_SYS_WAIT_H)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/sys_wait.in.h; \ } > $@-t && \ mv $@-t $@ |