Mercurial > pidgin
diff libpurple/protocols/gg/lib/libgadu.c @ 29539:db6735e579f8
Partially fix libgadu build on Win32. Refs #10542. I'm still not sure how to
handle all the stuff in resolver.c for DNS resolution. I couldn't quite see how
to reconcile our earlier stuff with this new code. Hopefully a more skilled
Win32 developer can finish this.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Mon, 22 Feb 2010 00:36:15 +0000 |
parents | 6359fde67f4c |
children | 818f2845ab47 |
line wrap: on
line diff
--- a/libpurple/protocols/gg/lib/libgadu.c Sun Feb 21 16:52:42 2010 +0000 +++ b/libpurple/protocols/gg/lib/libgadu.c Mon Feb 22 00:36:15 2010 +0000 @@ -28,22 +28,34 @@ * \brief Główny moduł biblioteki */ +#include "libgadu.h" +#include "libgadu-internal.h" + #include <sys/types.h> -#include <sys/socket.h> -#include <netinet/in.h> -#include <arpa/inet.h> -#ifdef sun -# include <sys/filio.h> + +#ifdef _WIN32 +# include <io.h> +# include <fcntl.h> +# include <errno.h> +# define SHUT_RDWR SD_BOTH +#else +# include <sys/socket.h> +# include <netinet/in.h> +# include <arpa/inet.h> +# ifdef sun +# include <sys/filio.h> +# endif #endif #include "compat.h" -#include "libgadu.h" #include "protocol.h" #include "resolver.h" -#include "libgadu-internal.h" -#include <errno.h> -#include <netdb.h> +#ifndef _WIN32 +# include <errno.h> /* on Win32 this is included above */ +# include <netdb.h> +#endif + #include <stdarg.h> #include <stdio.h> #include <stdlib.h>