summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Tarasov <tarasov@dodologics.com>2009-01-14 08:26:31 +1000
committerJean-Baptiste Queru <jbq@google.com>2009-03-06 13:28:46 -0800
commita9243740eaf1e187d7ac8937c3de7ec837da1765 (patch)
tree8617da8c39ff4540812dfa5365ec11662fe8b160
parent3607268bbf57cd3af1bb2d67e956821fb8e3c9ec (diff)
downloadexternal_webkit-a9243740eaf1e187d7ac8937c3de7ec837da1765.zip
external_webkit-a9243740eaf1e187d7ac8937c3de7ec837da1765.tar.gz
external_webkit-a9243740eaf1e187d7ac8937c3de7ec837da1765.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))