aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Wiley <wiley@google.com>2015-07-07 11:43:23 -0700
committerChristopher Wiley <wiley@google.com>2015-07-07 11:43:23 -0700
commit5142b74f25682b507a25464532824b5e612601db (patch)
treecaef7e6ed1b5ae8d7521dd8ebb49125d3cf08c3d
parent9d5e194eb7ac0ef949924f45a6142a6684d49c03 (diff)
downloadlibevent-5142b74f25682b507a25464532824b5e612601db.tar.gz
Use the threadsafe gethostbyname_r
While here, fix up some erroneous comments in README.android. Bug: 22229743 Change-Id: Ie62d48e0a06f914c3139640f48360afc35213c97
-rw-r--r--README.android4
-rw-r--r--include/event2/event-config.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/README.android b/README.android
index 98eb0d5..d9a4fa4 100644
--- a/README.android
+++ b/README.android
@@ -29,7 +29,7 @@ NDK_ROOT="${BRANCH_ROOT}/prebuilts/ndk/current/platforms/android-21/arch-arm64/u
CFLAGS="-nostdlib
-Wl,-rpath-link=${BRANCH_ROOT}/out/target/product/hammerhead/obj/lib
-L${BRANCH_ROOT}/out/target/product/hammerhead/obj/lib
- -I${BRANCH_ROOT}/prebuilts/ndk/current/platforms/android-21/arch-arm/usr/include"
- LIBS="-lc "
+ -I${BRANCH_ROOT}/prebuilts/ndk/current/platforms/android-21/arch-arm/usr/include" \
+ LIBS="-lc "
Note that I built hammerhead first and used prebuilts from the most recent NDK.
diff --git a/include/event2/event-config.h b/include/event2/event-config.h
index aff1a94..7aff2cd 100644
--- a/include/event2/event-config.h
+++ b/include/event2/event-config.h
@@ -99,7 +99,7 @@
#define _EVENT_HAVE_GETEUID 1
/* Define this if you have any gethostbyname_r() */
-/* #undef _EVENT_HAVE_GETHOSTBYNAME_R */
+#define _EVENT_HAVE_GETHOSTBYNAME_R 1
/* Define this if gethostbyname_r takes 3 arguments */
/* #undef _EVENT_HAVE_GETHOSTBYNAME_R_3_ARG */
@@ -108,7 +108,7 @@
/* #undef _EVENT_HAVE_GETHOSTBYNAME_R_5_ARG */
/* Define this if gethostbyname_r takes 6 arguments */
-/* #undef _EVENT_HAVE_GETHOSTBYNAME_R_6_ARG */
+#define _EVENT_HAVE_GETHOSTBYNAME_R_6_ARG 1
/* Define to 1 if you have the `getnameinfo' function. */
#define _EVENT_HAVE_GETNAMEINFO 1