diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2010-03-24 14:07:18 -0400 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2010-03-24 14:07:18 -0400 |
commit | 5709a0dca248e9e7237c1849072454c1dcb6a890 (patch) | |
tree | 5d2f3530052bd1e4dfdce43436d45249269de246 /include | |
parent | d42f9329dc52200e3964d1060f373368f401b828 (diff) | |
download | curl-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.cmake | 4 |
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; |