Patch to fix win32 building
Damien Churchill <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
The tds_sysdep_public.h file in the win32 folder needs to be patched so dblib and libTDS can be built, at least this is what I had to do in order to get it to build for me. Damien _______________________________________________ FreeTDS mailing list [email protected] http://lists.ibiblio.org/mailman/listinfo/freetds
tds_sysdep_public.h.diff
(application/octet-stream, 492 B)
--- D:/Temp/freetds-0.83.dev.20091012/win32/tds_sysdep_public.h.orig Mon Mar 16 20:46:20 2009
+++ D:/Temp/freetds-0.83.dev.20091012/win32/tds_sysdep_public.h Fri Nov 20 11:47:46 2009
@@ -28,8 +28,12 @@
{
#endif
+
+
+#include <winsock2.h>
#include <windows.h>
-#include <winsock2.h>
+
+#define ssize_t SSIZE_T
#define tds_sysdep_int16_type short /* 16-bit int */
#define tds_sysdep_int32_type int /* 32-bit int */
#define tds_sysdep_int64_type __int64 /* 64-bit int */