comparison libpurple/protocols/gg/lib/common.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 eb8b1cfd3349
comparison
equal deleted inserted replaced
29538:6359fde67f4c 29539:db6735e579f8
45 /** 45 /**
46 * \file common.c 46 * \file common.c
47 * 47 *
48 * \brief Funkcje wykorzystywane przez różne moduły biblioteki 48 * \brief Funkcje wykorzystywane przez różne moduły biblioteki
49 */ 49 */
50 #include <sys/types.h> 50
51 #include <sys/ioctl.h> 51 #include "libgadu.h"
52 #include <sys/socket.h> 52 #include "libgadu-internal.h"
53 #include <netinet/in.h> 53
54 #include <arpa/inet.h> 54 #ifndef _WIN32
55 #ifdef sun 55 # include <sys/types.h>
56 # include <sys/filio.h> 56 # include <sys/ioctl.h>
57 # include <sys/socket.h>
58 # include <netinet/in.h>
59 # include <arpa/inet.h>
60 # ifdef sun
61 # include <sys/filio.h>
62 # endif
57 #endif 63 #endif
58 64
59 #include <errno.h> 65 #include <errno.h>
60 #include <fcntl.h> 66 #include <fcntl.h>
61 #include <netdb.h> 67
68 #ifndef _WIN32
69 # include <netdb.h>
70 #endif
71
62 #include <stdarg.h> 72 #include <stdarg.h>
63 #include <stdio.h> 73 #include <stdio.h>
64 #include <stdlib.h> 74 #include <stdlib.h>
65 #include <string.h> 75 #include <string.h>
66 #include <unistd.h> 76 #include <unistd.h>
67
68 #include "libgadu.h"
69 #include "libgadu-internal.h"
70 77
71 /** 78 /**
72 * Plik, do którego będą przekazywane informacje odpluskwiania. 79 * Plik, do którego będą przekazywane informacje odpluskwiania.
73 * 80 *
74 * Funkcja \c gg_debug() i pochodne mogą być przechwytywane przez aplikację 81 * Funkcja \c gg_debug() i pochodne mogą być przechwytywane przez aplikację