From f5a7066aa3b86204842d7ae67efb6af26681549d Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 13 Nov 2007 22:04:42 +0000 Subject: [PATCH] fix qwirk in solaris build git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6247 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/curl/configure.ac | 9 +++++++++ libs/curl/lib/config.h.in | 10 +++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/libs/curl/configure.ac b/libs/curl/configure.ac index 27976f2514..ce112fbcf5 100644 --- a/libs/curl/configure.ac +++ b/libs/curl/configure.ac @@ -417,6 +417,15 @@ fi dnl socket lib? AC_CHECK_FUNC(connect, , [ AC_CHECK_LIB(socket, connect) ]) +AC_CHECK_LIB(socket, socket, + [HAVE_SOCKET="1" + LIBS="$LIBS -lsocket" + ]) + +if test "$HAVE_SOCKET" = "1"; then + AC_DEFINE(HAVE_SOCKET, 1, [If you have socket]) +fi + dnl dl lib? AC_CHECK_FUNC(dlclose, , [ AC_CHECK_LIB(dl, dlopen) ]) diff --git a/libs/curl/lib/config.h.in b/libs/curl/lib/config.h.in index 4bc60b0df1..8602189707 100644 --- a/libs/curl/lib/config.h.in +++ b/libs/curl/lib/config.h.in @@ -621,16 +621,16 @@ /* Define to the function return type for send. */ #undef SEND_TYPE_RETV -/* The size of `curl_off_t', as computed by sizeof. */ +/* The size of a `curl_off_t', as computed by sizeof. */ #undef SIZEOF_CURL_OFF_T -/* The size of `long', as computed by sizeof. */ +/* The size of a `long', as computed by sizeof. */ #undef SIZEOF_LONG -/* The size of `size_t', as computed by sizeof. */ +/* The size of a `size_t', as computed by sizeof. */ #undef SIZEOF_SIZE_T -/* The size of `time_t', as computed by sizeof. */ +/* The size of a `time_t', as computed by sizeof. */ #undef SIZEOF_TIME_T /* Define to 1 if you have the ANSI C header files. */ @@ -685,7 +685,7 @@ /* type to use in place of in_addr_t if not defined */ #undef in_addr_t -/* Define to `unsigned int' if does not define. */ +/* Define to `unsigned' if does not define. */ #undef size_t /* type to use in place of socklen_t if not defined */