projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ccaeaa
)
Add extern definition for environ.
author
Davin McCall
<davmac@davmac.org>
Fri, 5 Jul 2019 11:39:46 +0000
(21:39 +1000)
committer
Davin McCall
<davmac@davmac.org>
Fri, 5 Jul 2019 11:39:46 +0000
(21:39 +1000)
POSIX is somewhat ambiguous as to whether unistd.h should declare the
environ variable. It is not listed in the specific requirements for
unistd.h and OpenBSD does not declare it in that header.
src/igr-tests/igr-runner.cc
patch
|
blob
|
history
diff --git
a/src/igr-tests/igr-runner.cc
b/src/igr-tests/igr-runner.cc
index 8d30bbc3422ad70d06ff12ccf9430ab2300d5b74..d822b41a627e4082ba9e74d2184fe13d76894acd 100644
(file)
--- a/
src/igr-tests/igr-runner.cc
+++ b/
src/igr-tests/igr-runner.cc
@@
-6,6
+6,8
@@
#include <unistd.h>
#include <sys/wait.h>
+extern char **environ;
+
// Integration test suite runner.
int main(int argc, char **argv)