e7511cad0d67c6f8fa73d9b8843450bb67ea606c
[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 <netinet/in.h>
24 #include <arpa/inet.h>
25 #include <netdb.h>
26 #include <sys/un.h>
27 #include <netinet/tcp.h>
28
29 #endif /* WIN32 */
30
31
32 #endif /* LIBMEMCACHED_PLATFORM_H */