projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
consolidate
[awesomized/libmemcached]
/
src
/
p9y
/
socket.hpp
diff --git
a/src/p9y/socket.hpp
b/src/p9y/socket.hpp
index ca0b97d3a5f140ec48cf6bc9b71ecfb56489fe50..9678b39fec231f03ba3ae2d17ec59c490706f812 100644
(file)
--- a/
src/p9y/socket.hpp
+++ b/
src/p9y/socket.hpp
@@
-1,6
+1,6
@@
#pragma once
#pragma once
-#include "libmemcached-1
.0
/platform.h"
+#include "libmemcached-1/platform.h"
#if defined __cplusplus
# include <cerrno>
#if defined __cplusplus
# include <cerrno>
@@
-8,6
+8,8
@@
# include <errno.h>
#endif
# include <errno.h>
#endif
+#include <fcntl.h>
+
#if defined HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
#if defined HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
@@
-20,6
+22,10
@@
# include <netinet/in.h>
#endif
# include <netinet/in.h>
#endif
+#if defined HAVE_NETINET_TCP_H
+# include <netinet/tcp.h>
+#endif
+
#if defined HAVE_SYS_UN_H
# include <sys/un.h>
#endif
#if defined HAVE_SYS_UN_H
# include <sys/un.h>
#endif
@@
-33,6
+39,7
@@
extern "C" {
#endif
# if defined _WIN32
#endif
# if defined _WIN32
+# define P9Y_NEED_GET_SOCKET_ERRNO
int get_socket_errno();
# define SHUT_WR SD_SEND
# define SHUT_RD SD_RECEIVE
int get_socket_errno();
# define SHUT_WR SD_SEND
# define SHUT_RD SD_RECEIVE