spawn: improve wrapper support
authorEric Blake <ebb9@byu.net>
Wed, 30 Dec 2009 18:52:31 +0000 (11:52 -0700)
committerEric Blake <ebb9@byu.net>
Thu, 31 Dec 2009 13:08:48 +0000 (06:08 -0700)
commit0bf85001e78afe170ee53158a5ca3c2036b5da99
tree42b10833bba693987fa98f5cb41cbf3f6a6e7e67
parentf2f428037cd5dcf93c4cc8cfacf4dd92f0f250bd
spawn: improve wrapper support

Avoid type conflicts if overriding system header.

* m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
(gl_SPAWN_H_DEFAULTS): New defaults.
* modules/spawn (Makefile.am): Substitute them.
* lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
Only declare if missing or broken.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/spawn.in.h
m4/spawn_h.m4
modules/spawn