diff options
| -rw-r--r-- | src/stdlib/getenv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stdlib/getenv.c b/src/stdlib/getenv.c index edf5c4f9..e5129dc4 100644 --- a/src/stdlib/getenv.c +++ b/src/stdlib/getenv.c @@ -5,6 +5,7 @@ char * getenv(const char * name) { + #ifdef _POSIX_SOURCE extern char **environ; int i = 0; @@ -13,6 +14,9 @@ char * getenv(const char * name) return environ[i]; i++; } + #else + (void)name; + #endif return NULL; } |
