cURL / Mailing Lists / curl-library / Single Mail

curl-library

msys/mingw patch

From: Andres Garcia <fandom_at_retemail.es>
Date: Wed, 03 Nov 2004 17:11:09 +0100

Hi,

I have attached to the mail the changes I had to make
to get curl to compile again using msys/mingw.

Andres

diff -ru curl/configure.ac Test/configure.ac
--- curl/configure.ac Wed Nov 3 10:02:37 2004
+++ Test/configure.ac Wed Nov 3 15:39:30 2004
@@ -1084,6 +1084,17 @@
   AC_CHECK_FUNCS( gmtime_r )
 fi
 
+dnl **********************************************************************
+dnl Check for the presence of winsock2 headers
+dnl **********************************************************************
+
+ AC_CHECK_HEADERS(winsock2.h)
+
+dnl **********************************************************************
+dnl Check for the presence of the ftruncate function
+dnl **********************************************************************
+
+ AC_CHECK_FUNCS( ftruncate )
 
 dnl **********************************************************************
 dnl Back to "normal" configuring

diff -ru curl/lib/config.h.in Test/lib/config.h.in
--- curl/lib/config.h.in Wed Nov 3 11:04:54 2004
+++ Test/lib/config.h.in Wed Nov 3 15:26:46 2004
@@ -429,6 +429,12 @@
 /* Define to 1 if you have the <winsock.h> header file. */
 #undef HAVE_WINSOCK_H
 
+/* Define to 1 if you have the <winsock2.h> header file. */
+#undef HAVE_WINSOCK2_H
+
+/* Define to 1 if you have the `ftruncate' function. */
+#undef HAVE_FTRUNCATE
+
 /* Define this symbol if your OS supports changing the contents of argv */
 #undef HAVE_WRITABLE_ARGV
 
Received on 2004-11-03