diff options
author | David Carlier <[email protected]> | 2019-05-22 05:04:28 +0100 |
---|---|---|
committer | David Carlier <[email protected]> | 2019-05-22 05:04:28 +0100 |
commit | f87bcc670875d270f022dafe3d8a8462562bcf56 (patch) | |
tree | e47d005f138a93e6bcd0acc0ba37b2576285bde6 /src | |
parent | 85423f990fa216369e442661c09f900cd7a1deca (diff) |
tweak
Diffstat (limited to 'src')
-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 |