Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri,  9 Mar 2012 10:14:13 +0200
From: Georgi Chorbadzhiyski <gf@...xsol.org>
To: musl@...ts.openwall.com
Subject: [PATCH 3/4] include/unistd.h: Define vfork() if _BSD_SOURCE is set.

According to vfork(2) man page, the function should be defined
if _BSD_SOURCE is set.
---
 include/unistd.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/include/unistd.h b/include/unistd.h
index 3fda5aa..083eae4 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -152,7 +152,6 @@ int sethostname(const char *, size_t);
 int brk(void *);
 void *sbrk(intptr_t);
 pid_t forkall(void);
-pid_t vfork(void);
 int vhangup(void);
 int chroot(const char *);
 int getpagesize(void);
@@ -164,6 +163,10 @@ int setresgid(gid_t, gid_t, gid_t);
 char *get_current_dir_name(void);
 #endif
 
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+pid_t vfork(void);
+#endif
+
 #define _XOPEN_VERSION          700
 #define _XOPEN_UNIX             1
 #define _XOPEN_ENH_I18N         1
-- 
1.7.5.1

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.