summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Tarasov <tarasov@dodologics.com>2009-01-14 08:26:31 +1000
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-29 08:55:34 -0700
commit568a5013edcd80e518f20e39e7724bbfb74bfb29 (patch)
tree38c0483ab5ce0392c77f84447e8b944e1e5ee618
parenta5c3e7f2591b807dd2acf3e7f0fae25e433d5812 (diff)
downloadexternal_webkit-568a5013edcd80e518f20e39e7724bbfb74bfb29.zip
external_webkit-568a5013edcd80e518f20e39e7724bbfb74bfb29.tar.gz
external_webkit-568a5013edcd80e518f20e39e7724bbfb74bfb29.tar.bz2
Allows building of WebKit libs on FreeBSD
Includes declarations of AF_INET, sockaddr_in & etc.
-rw-r--r--WebKit/android/wds/client/ClientUtils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/WebKit/android/wds/client/ClientUtils.h b/WebKit/android/wds/client/ClientUtils.h
index 0aa068e..261af27 100644
--- a/WebKit/android/wds/client/ClientUtils.h
+++ b/WebKit/android/wds/client/ClientUtils.h
@@ -28,6 +28,14 @@
#include <arpa/inet.h>
+/*
+ * included for sockaddr_in structure, AF_INET definiton and etc.
+ */
+#ifdef __FreeBSD__
+#include <netinet/in.h>
+#include <sys/socket.h>
+#endif
+
// Callers need to include Log.h and errno.h to use this macro
#define log_errno(str) LOGE("%s: %s", str, strerror(errno))