8b30f7732a99b4783e781d28dab4f3409a5b4ac2
[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 #else
20 typedef int SOCKET;
21 #include <sys/socket.h>
22 #include <arpa/inet.h>
23 #include <netdb.h>
24 #include <sys/un.h>
25 #include <netinet/tcp.h>
26 #include <netinet/in.h>
27
28 #endif /* WIN32 */
29
30
31 #endif /* LIBMEMCACHED_PLATFORM_H */