Fixed autoconf macros for cross compile
[awesomized/libmemcached] / libmemcached / platform.h
1 /* LibMemcached
2 * Copyright (C) 2006-2010 Brian Aker, Trond Norbye
3 * All rights reserved.
4 *
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
7 *
8 * Summary: Try to hide platform-specific stuff
9 *
10 */
11 #ifndef LIBMEMCACHED_PLATFORM_H
12 #define LIBMEMCACHED_PLATFORM_H 1
13
14 #ifdef WIN32
15
16 #include <winsock2.h>
17 #include <ws2tcpip.h>
18 typedef short in_port_t;
19 typedef SOCKET memcached_socket_t;
20 #else
21 typedef int memcached_socket_t;
22 #include <sys/socket.h>
23 #include <arpa/inet.h>
24 #include <netdb.h>
25 #include <sys/un.h>
26 #include <netinet/tcp.h>
27 #include <netinet/in.h>
28
29 #endif /* WIN32 */
30
31
32 #endif /* LIBMEMCACHED_PLATFORM_H */