comparison libpurple/protocols/gg/lib/compat.h @ 32672:3828a61c44da

A boring and large patch so I can merge heads.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 23 Dec 2011 08:21:58 +0000
parents 6359fde67f4c
children
comparison
equal deleted inserted replaced
32671:0e69949b3e61 32672:3828a61c44da
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