Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
29538:6359fde67f4c | 29539:db6735e579f8 |
---|---|
26 * \file libgadu.c | 26 * \file libgadu.c |
27 * | 27 * |
28 * \brief Główny moduł biblioteki | 28 * \brief Główny moduł biblioteki |
29 */ | 29 */ |
30 | 30 |
31 #include "libgadu.h" | |
32 #include "libgadu-internal.h" | |
33 | |
31 #include <sys/types.h> | 34 #include <sys/types.h> |
32 #include <sys/socket.h> | 35 |
33 #include <netinet/in.h> | 36 #ifdef _WIN32 |
34 #include <arpa/inet.h> | 37 # include <io.h> |
35 #ifdef sun | 38 # include <fcntl.h> |
36 # include <sys/filio.h> | 39 # include <errno.h> |
40 # define SHUT_RDWR SD_BOTH | |
41 #else | |
42 # include <sys/socket.h> | |
43 # include <netinet/in.h> | |
44 # include <arpa/inet.h> | |
45 # ifdef sun | |
46 # include <sys/filio.h> | |
47 # endif | |
37 #endif | 48 #endif |
38 | 49 |
39 #include "compat.h" | 50 #include "compat.h" |
40 #include "libgadu.h" | |
41 #include "protocol.h" | 51 #include "protocol.h" |
42 #include "resolver.h" | 52 #include "resolver.h" |
43 #include "libgadu-internal.h" | 53 |
44 | 54 #ifndef _WIN32 |
45 #include <errno.h> | 55 # include <errno.h> /* on Win32 this is included above */ |
46 #include <netdb.h> | 56 # include <netdb.h> |
57 #endif | |
58 | |
47 #include <stdarg.h> | 59 #include <stdarg.h> |
48 #include <stdio.h> | 60 #include <stdio.h> |
49 #include <stdlib.h> | 61 #include <stdlib.h> |
50 #include <string.h> | 62 #include <string.h> |
51 #include <signal.h> | 63 #include <signal.h> |