From ed43eae65f0f6fa97360c3ee894f7a333261314c Mon Sep 17 00:00:00 2001 From: nsz Date: Oct 20 2012 21:36:53 +0000 Subject: api: fix unistd.h --- diff --git a/src/api/unistd.c b/src/api/unistd.c index cdc6564..d63da54 100644 --- a/src/api/unistd.c +++ b/src/api/unistd.c @@ -6,7 +6,7 @@ static void f() { C(_POSIX_VERSION) C(_POSIX2_VERSION) -#ifdef _XOPEN_SOURCE) +#ifdef _XOPEN_SOURCE C(_XOPEN_VERSION) #endif C(F_OK) @@ -200,7 +200,7 @@ T(intptr_t) {char*(*p)(char*) = ctermid;} {int(*p)(int) = dup;} {int(*p)(int,int) = dup2;} -{char **x = environ}; +{extern char **environ; char **x = environ;}; {int(*p)(const char*,const char*,...) = execl;} {int(*p)(const char*,const char*,...) = execle;} {int(*p)(const char*,const char*,...) = execlp;}