diff options
-rw-r--r-- | src/lib/utils/os_utils.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp index 2c93f31e8..f30f18ae9 100644 --- a/src/lib/utils/os_utils.cpp +++ b/src/lib/utils/os_utils.cpp @@ -34,7 +34,6 @@ #include <errno.h> #include <termios.h> #undef B0 - extern "C" char **environ; #endif #if defined(BOTAN_TARGET_OS_IS_EMSCRIPTEN) @@ -44,7 +43,6 @@ #if defined(BOTAN_TARGET_OS_HAS_GETAUXVAL) || defined(BOTAN_TARGET_OS_IS_ANDROID) || \ defined(BOTAN_TARGET_OS_HAS_ELF_AUX_INFO) #include <sys/auxv.h> - #include <elf.h> #endif #if defined(BOTAN_TARGET_OS_HAS_WIN32) @@ -52,6 +50,11 @@ #include <windows.h> #endif +#if defined(BOTAN_TARGET_OS_IS_ANDROID) + #include <elf.h> + extern "C" char **environ; +#endif + namespace Botan { // Not defined in OS namespace for historical reasons |