comparison libpurple/protocols/gg/lib/dcc.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 93b08d43f684
comparison
equal deleted inserted replaced
29538:6359fde67f4c 29539:db6735e579f8
23 /** 23 /**
24 * \file dcc.c 24 * \file dcc.c
25 * 25 *
26 * \brief Obsługa połączeń bezpośrednich do wersji Gadu-Gadu 6.x 26 * \brief Obsługa połączeń bezpośrednich do wersji Gadu-Gadu 6.x
27 */ 27 */
28 #include "libgadu.h"
28 29
29 #include <sys/types.h> 30 #include <sys/types.h>
30 #include <sys/stat.h> 31 #include <sys/stat.h>
31 #include <sys/ioctl.h> 32
32 #include <sys/socket.h> 33 #ifndef _WIN32
33 #include <netinet/in.h> 34 # include <sys/ioctl.h>
34 #include <arpa/inet.h> 35 # include <sys/socket.h>
35 #ifdef sun 36 # include <netinet/in.h>
36 # include <sys/filio.h> 37 # include <arpa/inet.h>
38 # ifdef sun
39 # include <sys/filio.h>
40 # endif
37 #endif 41 #endif
38 42
39 #include <ctype.h> 43 #include <ctype.h>
40 #include <errno.h> 44 #include <errno.h>
41 #include <fcntl.h> 45 #include <fcntl.h>
44 #include <stdio.h> 48 #include <stdio.h>
45 #include <stdlib.h> 49 #include <stdlib.h>
46 #include <unistd.h> 50 #include <unistd.h>
47 51
48 #include "compat.h" 52 #include "compat.h"
49 #include "libgadu.h"
50 53
51 #ifndef GG_DEBUG_DISABLE 54 #ifndef GG_DEBUG_DISABLE
52 55
53 /** 56 /**
54 * \internal Przekazuje zawartość pakietu do odpluskwiania. 57 * \internal Przekazuje zawartość pakietu do odpluskwiania.