aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2021-12-21 15:35:30 -0800
committerColin Cross <ccross@android.com>2021-12-21 15:35:30 -0800
commit4fc781717e0964d30eacb76a7d5398617ee14120 (patch)
treefbf9ae2364b26a3edb0cb18d1e86672a41f3d243
parent6b846b3d5a0e5290fd25f3c6e7e622bc940e6f36 (diff)
downloadlibpcap-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.h b/config.h
index aa23c6a6..8f733076 100644
--- a/config.h
+++ b/config.h
@@ -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 */