Index: b/usr/src/head/unistd.h =================================================================== --- a/usr/src/head/unistd.h +++ b/usr/src/head/unistd.h @@ -34,7 +34,7 @@ #ifndef _UNISTD_H #define _UNISTD_H -#include +#include #include #include @@ -729,6 +729,9 @@ extern int getentropy(void *, size_t); #endif /* __GNUC__ */ #endif +#if defined(_GNU_SOURCE) || defined(__EXTENSIONS__) +extern char **environ; +#endif #ifdef __cplusplus }