summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2010-03-24 14:07:18 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2010-03-24 14:07:18 -0400
commit5709a0dca248e9e7237c1849072454c1dcb6a890 (patch)
tree5d2f3530052bd1e4dfdce43436d45249269de246 /include
parentd42f9329dc52200e3964d1060f373368f401b828 (diff)
downloadcurl-5709a0dca248e9e7237c1849072454c1dcb6a890.tar.gz
CMake fixes for Linux.
Make sure <sys/socket.h> is included if around when testing/using socklen_t. Also, disable LDAP if LDAP_H is not found on the system.
Diffstat (limited to 'include')
-rw-r--r--include/curl/curlbuild.h.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/curl/curlbuild.h.cmake b/include/curl/curlbuild.h.cmake
index 4f83e3fe1..3aa772fc4 100644
--- a/include/curl/curlbuild.h.cmake
+++ b/include/curl/curlbuild.h.cmake
@@ -143,6 +143,10 @@
# include <ws2tcpip.h>
#endif
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+
/* Data type definition of curl_socklen_t. */
typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;