2 +--------------------------------------------------------------------+
3 | libmemcached-awesome - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020-2021 Michael Wallner https://awesome.co/ |
13 +--------------------------------------------------------------------+
18 #include "libmemcached-1.0/configure.h"
20 /* This seems to be required for older compilers @note
21 * http://stackoverflow.com/questions/8132399/how-to-printf-uint64-t */
22 #ifndef __STDC_FORMAT_MACROS
23 # define __STDC_FORMAT_MACROS
31 # include <inttypes.h>
37 #include <sys/types.h>
39 #if defined HAVE_NETDB_H
43 #if !defined HAVE_IN_PORT_T
44 typedef int in_port_t
;
47 #if !defined HAVE_PID_T
52 typedef long int ssize_t
;
56 # define WINVER 0x0600
57 # define _WIN32_WINNT 0x0600
58 # include <winsock2.h>
59 # include <ws2tcpip.h>
60 typedef SOCKET memcached_socket_t
;
62 typedef int memcached_socket_t
;