comparison libpurple/protocols/gg/lib/compat.h @ 32777:e2ff2ac0e022

Gadu-Gadu: synchronize internal libgadu with upstream - second encounter. Refs #343
author tomkiewicz@cpw.pidgin.im
date Fri, 21 Oct 2011 12:48:30 +0000
parents 6359fde67f4c
children
comparison
equal deleted inserted replaced
32776:8c71a7e95f16 32777:e2ff2ac0e022
26 */ 26 */
27 27
28 #ifndef __COMPAT_H 28 #ifndef __COMPAT_H
29 #define __COMPAT_H 29 #define __COMPAT_H
30 30
31 #ifdef _WIN32
32 # include <ws2tcpip.h>
33 # include <winsock2.h>
34 # define EINPROGRESS WSAEINPROGRESS
35 # define ETIMEDOUT WSAETIMEDOUT
36 # define ENOTCONN WSAENOTCONN
37 # define ECONNRESET WSAECONNRESET
38 #else
39 # include <sys/ioctl.h>
40 # include <sys/socket.h>
41 # include <netinet/in.h>
42 # include <arpa/inet.h>
43 # include <netdb.h>
44 #endif
45
31 #ifdef sun 46 #ifdef sun
32 # define INADDR_NONE ((in_addr_t) 0xffffffff) 47 # define INADDR_NONE ((in_addr_t) 0xffffffff)
33 #endif 48 #endif
34 49
35 #endif 50 #endif