summaryrefslogtreecommitdiff
path: root/libc/debian/patches/unistd-add-environ.patch
blob: ea82c949ab9632069e4724b02554e15bc9aa7767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 <sys/feature_tests.h>
+#include <features.h>
 
 #include <sys/types.h>
 #include <sys/unistd.h>
@@ -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
 }