From dfb16e0221dcf3d17c14d204d5c50883b069524a Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Fri, 5 Jul 2019 21:39:46 +1000 Subject: [PATCH] Add extern definition for environ. 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/igr-tests/igr-runner.cc b/src/igr-tests/igr-runner.cc index 8d30bbc..d822b41 100644 --- a/src/igr-tests/igr-runner.cc +++ b/src/igr-tests/igr-runner.cc @@ -6,6 +6,8 @@ #include #include +extern char **environ; + // Integration test suite runner. int main(int argc, char **argv) -- 2.25.1