IMHO, there is no sys/socket.h on Windows;
we might need something like this:

common/stream/stream_socket.h-#ifdef HAVE_SYS_SOCKET_H
common/stream/stream_socket.h:#include <sys/socket.h>
common/stream/stream_socket.h-#endif
common/stream/stream_socket.h-#ifdef NATIVE_WIN32
common/stream/stream_socket.h:# include <winsock.h>
common/stream/stream_socket.h-#endif

Stefan

On Thu, Jul 07, 2011 at 03:35:07PM +0200, Fabian Groffen wrote:
> Changeset: f4f7002be037 for MonetDB
> URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f4f7002be037
> Modified Files:
>       clients/mapiclient/mnc.c
> Branch: default
> Log Message:
> 
> mnc: fix includes for Windows
> 
> 
> diffs (18 lines):
> 
> diff --git a/clients/mapiclient/mnc.c b/clients/mapiclient/mnc.c
> --- a/clients/mapiclient/mnc.c
> +++ b/clients/mapiclient/mnc.c
> @@ -40,9 +40,11 @@
>  #ifdef HAVE_PTHREAD_H
>  #include <pthread.h>
>  #endif
> -#include <sys/types.h>
> -#include <sys/socket.h>
> -#include <netdb.h>
> +#ifdef HAVE_GETADDRINFO
> +# include <sys/types.h>
> +# include <sys/socket.h>
> +# include <netdb.h>
> +#endif
>  
>  #ifndef HAVE_GETOPT_LONG
>  # include "monet_getopt.h"
> _______________________________________________
> Checkin-list mailing list
> [email protected]
> http://mail.monetdb.org/mailman/listinfo/checkin-list

-- 
| Stefan.Manegold @ CWI.nl | DB Architectures (INS1) |
| http://CWI.nl/~manegold/ | Science Park 123 (L321) |
| Tel.: +31 (0)20 592-4212 | 1098 XG Amsterdam  (NL) |
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to