diff -ru curl/configure.ac Test/configure.ac --- curl/configure.ac Tue Nov 23 19:01:48 2004 +++ Test/configure.ac Tue Nov 23 16:47:51 2004 @@ -1260,6 +1260,19 @@ ) +dnl This is for Msys/Mingw +if test "$HAVE_SELECT" != "1"; then + AC_MSG_CHECKING([for select in ws2_32]) + AC_TRY_LINK([#include ], + [select(0,(fd_set *)NULL,(fd_set *)NULL,(fd_set *)NULL,(struct timeval *)NULL);], + [ dnl worked! + AC_MSG_RESULT([yes]) + HAVE_SELECT="1" + AC_DEFINE_UNQUOTED(HAVE_SELECT,1)], + [AC_MSG_ERROR(You can't compile without a select)] + ) +fi + dnl sigsetjmp() might be a macro and no function so if it isn't found already dnl we make an extra check here! if test "$ac_cv_func_sigsetjmp" != "yes"; then diff -ru curl/include/curl/curl.h Test/include/curl/curl.h --- curl/include/curl/curl.h Sat Nov 13 16:54:26 2004 +++ Test/include/curl/curl.h Tue Nov 23 18:49:23 2004 @@ -51,12 +51,15 @@ * Decorate exportable functions for Win32 DLL linking. * This avoids using a .def file for building libcurl.dll. */ -#if (defined(WIN32) || defined(_WIN32)) && !defined(CURL_STATICLIB) + +#if (defined(WIN32) || defined(_WIN32)) && !defined(CURL_STATICLIB) && !defined(__MINGW32__) + #if defined(BUILDING_LIBCURL) #define CURL_EXTERN __declspec(dllexport) #else #define CURL_EXTERN __declspec(dllimport) #endif + #else #define CURL_EXTERN #endif diff -ru curl/src/config-win32.h Test/src/config-win32.h --- curl/src/config-win32.h Sun Nov 14 13:50:21 2004 +++ Test/src/config-win32.h Tue Nov 23 17:36:30 2004 @@ -2,6 +2,9 @@ /* Define if you have the stricmp function. */ #define HAVE_STRICMP 1 +/* Define to 1 if you have the `ftruncate' function. */ +#define HAVE_FTRUNCATE 1 + /* Define to 1 if you want the built-in manual */ #define USE_MANUAL 1