diff options
author | Colin Cross <ccross@android.com> | 2021-12-21 15:35:30 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2021-12-21 15:35:30 -0800 |
commit | 4fc781717e0964d30eacb76a7d5398617ee14120 (patch) | |
tree | fbf9ae2364b26a3edb0cb18d1e86672a41f3d243 | |
parent | 6b846b3d5a0e5290fd25f3c6e7e622bc940e6f36 (diff) | |
download | libpcap-4fc781717e0964d30eacb76a7d5398617ee14120.tar.gz |
Use posix strerror_r for musl
Modify config.h to unset HAVE_GNU_STRERROR_R for musl.
Bug: 190084016
Test: m USE_HOST_MUSL=true libpcap
Change-Id: I6dca994ef9a17e637eeb7521e7d4d4e33785ebe6
-rw-r--r-- | config.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -59,7 +59,9 @@ /* #undef HAVE_GETSPNAM */ /* Define to 1 if you have a GNU-style `strerror_r' function. */ -#define HAVE_GNU_STRERROR_R /**/ +#ifndef ANDROID_HOST_MUSL +#define HAVE_GNU_STRERROR_R 1 +#endif /* on HP-UX 10.20 or later */ /* #undef HAVE_HPUX10_20_OR_LATER */ |