From 3215ba10fd6dcff44bb0f6748b161f56dcd28d01 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 29 Sep 2010 13:17:43 +0200 Subject: New module 'waitpid'. * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h. * lib/sys_wait.in.h: Include , c++defs.h, warn-on-use.h. Don't include . (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 . --- modules/sys_wait | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/sys_wait') 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 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 $@ -- cgit v1.2.1