freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Paul Thurston <pthurston AT netegrate.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] freetds-current on win32
- Date: Tue, 11 May 2010 09:26:44 -0700
Damien:
What change did you make do get v0.83_20100511 compile under windows?
I'm running into an error in tdsodbc.h: #error SIZEOF_SQLWCHAR not supported
!!
See below for what I've done so far.
Thanks,
Paul
<fakepoll.h>
#if !defined(_WIN32)
#define POLLIN 0x0001
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLRDNORM POLLIN
#define POLLRDBAND POLLIN
#define POLLPRI POLLIN
#define POLLWRNORM POLLOUT
#define POLLWRBAND POLLOUT
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
typedef struct pollfd {
int fd; /* file descriptor to poll */
short events; /* events of interest on fd */
short revents; /* events that occurred on fd */
} pollfd_t;
#endif
<net.c>
#ifdef _WIN32
#define USE_NODELAY 1
#define SOL_TCP 1
int
_tds_socket_init(void)
{
WSADATA wsadata;
return WSAStartup(MAKEWORD(1, 1), &wsadata);
}
void
_tds_socket_done(void)
{
WSACleanup();
}
#endif
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Damien Churchill
Sent: Tuesday, May 11, 2010 7:49 AM
To: FreeTDS Development Group
Subject: [freetds] freetds-current on win32
I grabbed the latest freetds-current.tgz off the website, and opened the
solution file in the root of the project using VS2008, compiled (after the
fixes below) and my resulting *.libs are weighing in at around 2.2mb. Does
anyone know why they are so big? I remember for
0.82 they were only 300kb or something similar!
I disabled the definition of the poll flags, as per the other thread on
compiling freetds-current and fixed the errors in libTDS/net.c as well in
order to compile successfully.
If anyone can shed any light on the size of my libs it would be greatly
appreciated :)
Damien
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org<mailto:FreeTDS AT lists.ibiblio.org>
http://lists.ibiblio.org/mailman/listinfo/freetds
-
[freetds] freetds-current on win32,
Damien Churchill, 05/11/2010
-
Re: [freetds] freetds-current on win32,
Paul Thurston, 05/11/2010
- Re: [freetds] freetds-current on win32, Damien Churchill, 05/11/2010
-
Re: [freetds] freetds-current on win32,
Paul Thurston, 05/11/2010
-
Re: [freetds] freetds-current on win32,
Frediano Ziglio, 05/11/2010
-
Re: [freetds] freetds-current on win32,
Paul Thurston, 05/11/2010
-
Re: [freetds] freetds-current on win32,
Damien Churchill, 05/12/2010
-
Re: [freetds] freetds-current on win32,
Frediano Ziglio, 05/12/2010
- Re: [freetds] freetds-current on win32, Damien Churchill, 05/12/2010
- Re: [freetds] freetds-current on win32, Paul Thurston, 05/12/2010
-
Re: [freetds] freetds-current on win32,
Frediano Ziglio, 05/12/2010
-
Re: [freetds] freetds-current on win32,
Damien Churchill, 05/12/2010
-
Re: [freetds] freetds-current on win32,
Paul Thurston, 05/11/2010
-
Re: [freetds] freetds-current on win32,
Frediano Ziglio, 05/11/2010
-
Re: [freetds] freetds-current on win32,
Paul Thurston, 05/11/2010
Archive powered by MHonArc 2.6.24.