wiki:Building/transmission-1.71-Cygwin-build.diff
diff -NaurX diff-excludes.txt transmission-1.71-orig/configure transmission-1.71/configure
--- transmission-1.71-orig/configure	2009-06-07 20:36:27.000000000 -0500
+++ transmission-1.71/configure	2009-06-08 20:53:30.203125000 -0500
@@ -27792,10 +27792,10 @@
 case $host_os in
 
    *cygwin|*mingw32*)
-     have_msw="yes"
-     CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
-     CPPFLAGS="$CPPFLAGS -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN"
-     LIBS="$LIBS -lshell32 -lws2_32"
+#    have_msw="yes"
+#    CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
+#    CPPFLAGS="$CPPFLAGS -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN"
+#    LIBS="$LIBS -lshell32 -lws2_32"
      transmissionlocaledir="locale"
      if test -z "$host_alias"; then
        hostaliaswindres=
diff -NaurX diff-excludes.txt transmission-1.71-orig/libtransmission/JSON_parser.c transmission-1.71/libtransmission/JSON_parser.c
--- transmission-1.71-orig/libtransmission/JSON_parser.c	2009-05-15 08:16:34.000000000 -0500
+++ transmission-1.71/libtransmission/JSON_parser.c	2009-06-08 20:53:30.296875000 -0500
@@ -492,7 +492,11 @@
                         /*sscanf(jc->parse_buffer, "%Lf", &value.vu.float_value);*/
                         
                         /* not checking with end pointer b/c there may be trailing ws */
+#ifndef __CYGWIN__
                         value.vu.float_value = strtold(jc->parse_buffer, NULL);
+#else
+                        value.vu.float_value = strtod(jc->parse_buffer, NULL);
+#endif
                     }
                     break;
                 case JSON_T_INTEGER:
diff -NaurX diff-excludes.txt transmission-1.71-orig/third-party/libnatpmp/getgateway.c transmission-1.71/third-party/libnatpmp/getgateway.c
--- transmission-1.71-orig/third-party/libnatpmp/getgateway.c	2009-03-11 07:04:03.000000000 -0600
+++ transmission-1.71/third-party/libnatpmp/getgateway.c	2009-06-08 20:53:30.296875000 -0500
@@ -56,6 +56,17 @@
 #define USE_WIN32_CODE
 #endif
 
+#ifdef __CYGWIN__
+#undef USE_PROC_NET_ROUTE
+#undef USE_SOCKET_ROUTE
+#undef USE_SYSCTL_NET_ROUTE
+#define USE_WIN32_CODE
+#include <stdarg.h>
+#include <w32api/windef.h>
+#include <w32api/winbase.h>
+#include <w32api/winreg.h>
+#endif
+
 #ifdef USE_SYSCTL_NET_ROUTE
 #include <stdlib.h>
 #include <sys/sysctl.h>
Last modified 12 years ago Last modified on Jun 9, 2009, 3:22:44 AM