summaryrefslogtreecommitdiffstats
path: root/debuggerd
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-12-18 15:47:09 -0800
committerElliott Hughes <enh@google.com>2014-12-18 23:49:17 +0000
commitc184d5655ac126c781e940f1a77a3448d2351b78 (patch)
tree8f7c60038711753d4cd4d759c4ecacd0c3709973 /debuggerd
parent12677383ae247b26225cf9c961e3fb46bcdfc6a6 (diff)
downloadsystem_core-c184d5655ac126c781e940f1a77a3448d2351b78.zip
system_core-c184d5655ac126c781e940f1a77a3448d2351b78.tar.gz
system_core-c184d5655ac126c781e940f1a77a3448d2351b78.tar.bz2
#include <arpa/inet.h> for htonl.
Not sure why this only shows up with clang. Change-Id: Id5603483e32f8a8d4b091dbb31b3142e3f77deac
Diffstat (limited to 'debuggerd')
-rw-r--r--debuggerd/Android.mk2
-rw-r--r--debuggerd/tombstone.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/debuggerd/Android.mk b/debuggerd/Android.mk
index 1b8b98d..0cf2818 100644
--- a/debuggerd/Android.mk
+++ b/debuggerd/Android.mk
@@ -28,6 +28,8 @@ LOCAL_SHARED_LIBRARIES := \
liblog \
libselinux \
+LOCAL_CLANG := true
+
LOCAL_MODULE := debuggerd
LOCAL_MODULE_STEM_32 := debuggerd
LOCAL_MODULE_STEM_64 := debuggerd64
diff --git a/debuggerd/tombstone.cpp b/debuggerd/tombstone.cpp
index 0c1b80f..38e9d17 100644
--- a/debuggerd/tombstone.cpp
+++ b/debuggerd/tombstone.cpp
@@ -16,6 +16,7 @@
#define LOG_TAG "DEBUG"
+#include <arpa/inet.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>