do NOT force definition of _POSIX_SOURCE, at least not on NetBSD,

especially when you follow using non-POSIX vfork()

defining _POSIX_SOURCE means "POSIX clean environment", which means
(besides other things) that we won't get proper definition of e.g.
vfork() and end up with the compatibility stub
This commit is contained in:
jdolecek 2003-01-28 14:37:21 +00:00
parent be1188e00d
commit a725c77213
1 changed files with 3 additions and 0 deletions

View File

@ -23,9 +23,12 @@
other reasons why the executable file might be covered by the GNU
General Public License. */
#ifndef __NetBSD__
/* the forced define of _POSIX_SOURCE is probably only needed for glibc */
#ifndef _POSIX_SOURCE
# define _POSIX_SOURCE
#endif
#endif
#include <errno.h>
#ifndef __set_errno