projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
2f289c6
)
p9y: bsd
author
Michael Wallner
<mike@php.net>
Thu, 3 Dec 2020 18:46:35 +0000
(19:46 +0100)
committer
Michael Wallner
<mike@php.net>
Thu, 3 Dec 2020 18:46:35 +0000
(19:46 +0100)
13 files changed:
CMake/_Include.cmake
patch
|
blob
|
history
src/libmemcached/behavior.cc
patch
|
blob
|
history
src/libmemcached/common.h
patch
|
blob
|
history
src/libmemcached/connect.cc
patch
|
blob
|
history
src/libmemcached/flush_buffers.cc
patch
|
blob
|
history
src/libmemcached/instance.cc
patch
|
blob
|
history
src/libmemcached/io.cc
patch
|
blob
|
history
src/libmemcached/purge.cc
patch
|
blob
|
history
src/libmemcached/sasl.cc
patch
|
blob
|
history
src/libmemcached/server.cc
patch
|
blob
|
history
src/libmemcachedprotocol/pedantic.c
patch
|
blob
|
history
src/p9y/socket.hpp
patch
|
blob
|
history
test/lib/Connection.hpp
patch
|
blob
|
history
diff --git
a/CMake/_Include.cmake
b/CMake/_Include.cmake
index a419d8dfdc0b023fff9106e7b3ef8635807764f9..79533f2766b6d228bac54755619a3c5ddaa74598 100644
(file)
--- a/
CMake/_Include.cmake
+++ b/
CMake/_Include.cmake
@@
-121,6
+121,7
@@
check_include(dlfcn.h)
check_include(getopt.h)
check_include(libgen.h)
check_include(netdb.h)
check_include(getopt.h)
check_include(libgen.h)
check_include(netdb.h)
+check_include(netinet/in.h)
check_include(poll.h)
check_include(strings.h)
check_include(sys/poll.h)
check_include(poll.h)
check_include(strings.h)
check_include(sys/poll.h)
diff --git
a/src/libmemcached/behavior.cc
b/src/libmemcached/behavior.cc
index d0d6c6f2a9c0e416f6e732b0e5c405645fae5807..acb0fe1af69c40ffa788895282c3698a19cb3909 100644
(file)
--- a/
src/libmemcached/behavior.cc
+++ b/
src/libmemcached/behavior.cc
@@
-17,7
+17,6
@@
#include "libmemcached/options.hpp"
#include "libmemcached/virtual_bucket.h"
#include "p9y/random.hpp"
#include "libmemcached/options.hpp"
#include "libmemcached/virtual_bucket.h"
#include "p9y/random.hpp"
-#include "p9y/socket.hpp"
#include <ctime>
#include <sys/types.h>
#include <ctime>
#include <sys/types.h>
diff --git
a/src/libmemcached/common.h
b/src/libmemcached/common.h
index defb3b0da19b31ab7b79662e3d6e5c2bc9111dd3..c36384b2aafc170654a8e3a19d90577c7bdeccfb 100644
(file)
--- a/
src/libmemcached/common.h
+++ b/
src/libmemcached/common.h
@@
-38,24
+38,13
@@
# include <iso646.h>
#endif
# include <iso646.h>
#endif
-#ifdef HAVE_SYS_UN_H
-# include <sys/un.h>
-#endif
+#include "p9y/socket.hpp"
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <fcntl.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <fcntl.h>
-#include <sys/types.h>
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
-#ifdef HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
diff --git
a/src/libmemcached/connect.cc
b/src/libmemcached/connect.cc
index 913e48be21dc593c8b3da2aaa48ef3ba891ef611..a4b9b40aee613c418f3fbdf2bbf714d357cbf470 100644
(file)
--- a/
src/libmemcached/connect.cc
+++ b/
src/libmemcached/connect.cc
@@
-14,7
+14,6
@@
*/
#include "libmemcached/common.h"
*/
#include "libmemcached/common.h"
-#include "p9y/socket.hpp"
#include "p9y/poll.hpp"
#include <cassert>
#include "p9y/poll.hpp"
#include <cassert>
diff --git
a/src/libmemcached/flush_buffers.cc
b/src/libmemcached/flush_buffers.cc
index 6c58e69cd902c56f2dde262213b19415350db281..512fa2b7a429681419a061d330cf938ca248b013 100644
(file)
--- a/
src/libmemcached/flush_buffers.cc
+++ b/
src/libmemcached/flush_buffers.cc
@@
-14,7
+14,6
@@
*/
#include "libmemcached/common.h"
*/
#include "libmemcached/common.h"
-#include "p9y/socket.hpp"
memcached_return_t memcached_flush_buffers(memcached_st *shell) {
Memcached *memc = memcached2Memcached(shell);
memcached_return_t memcached_flush_buffers(memcached_st *shell) {
Memcached *memc = memcached2Memcached(shell);
diff --git
a/src/libmemcached/instance.cc
b/src/libmemcached/instance.cc
index 972f6b6f6ae5e3f6e3cfacd4f2b4aa3f82a023a9..266eccc70f8d8b6f53b73b1513ab7879ff5447e6 100644
(file)
--- a/
src/libmemcached/instance.cc
+++ b/
src/libmemcached/instance.cc
@@
-14,7
+14,6
@@
*/
#include "libmemcached/common.h"
*/
#include "libmemcached/common.h"
-#include "p9y/socket.hpp"
static inline void _server_init(memcached_instance_st *self, Memcached *root,
const memcached_string_t &hostname, in_port_t port, uint32_t weight,
static inline void _server_init(memcached_instance_st *self, Memcached *root,
const memcached_string_t &hostname, in_port_t port, uint32_t weight,
diff --git
a/src/libmemcached/io.cc
b/src/libmemcached/io.cc
index 94aca6177acc929f50811fa1276810de621c02fc..0cf1931a3add659a99d3180b79a9e261b668677d 100644
(file)
--- a/
src/libmemcached/io.cc
+++ b/
src/libmemcached/io.cc
@@
-14,8
+14,6
@@
*/
#include "libmemcached/common.h"
*/
#include "libmemcached/common.h"
-
-#include "p9y/socket.hpp"
#include "p9y/poll.hpp"
void initialize_binary_request(memcached_instance_st *server,
#include "p9y/poll.hpp"
void initialize_binary_request(memcached_instance_st *server,
diff --git
a/src/libmemcached/purge.cc
b/src/libmemcached/purge.cc
index d4b3146da983790322440437337da27901b3f233..4437d76100b53354b9c660107c5014d2975eae9d 100644
(file)
--- a/
src/libmemcached/purge.cc
+++ b/
src/libmemcached/purge.cc
@@
-14,7
+14,6
@@
*/
#include "libmemcached/common.h"
*/
#include "libmemcached/common.h"
-#include "p9y/socket.hpp"
#define memcached_set_purging(__object, __value) ((__object)->state.is_purging = (__value))
#define memcached_set_purging(__object, __value) ((__object)->state.is_purging = (__value))
diff --git
a/src/libmemcached/sasl.cc
b/src/libmemcached/sasl.cc
index 4fa981d285cf6a03c047d1acd1ebbaa391e49932..437499b06008da8fada787e70f4828a52bb9b647 100644
(file)
--- a/
src/libmemcached/sasl.cc
+++ b/
src/libmemcached/sasl.cc
@@
-14,7
+14,6
@@
*/
#include "libmemcached/common.h"
*/
#include "libmemcached/common.h"
-#include "p9y/socket.hpp"
#include <cassert>
#include <atomic>
#include <cassert>
#include <atomic>
diff --git
a/src/libmemcached/server.cc
b/src/libmemcached/server.cc
index 28d063ec05d494fd648419eda53c48e710dcd587..e038196abffd52fe8d3052e7365ec10c2d0c9f79 100644
(file)
--- a/
src/libmemcached/server.cc
+++ b/
src/libmemcached/server.cc
@@
-14,7
+14,6
@@
*/
#include "libmemcached/common.h"
*/
#include "libmemcached/common.h"
-#include "p9y/socket.hpp"
static inline void _server_init(memcached_server_st *self, Memcached *root,
const memcached_string_t &hostname, in_port_t port, uint32_t weight,
static inline void _server_init(memcached_server_st *self, Memcached *root,
const memcached_string_t &hostname, in_port_t port, uint32_t weight,
diff --git
a/src/libmemcachedprotocol/pedantic.c
b/src/libmemcachedprotocol/pedantic.c
index 9b7d728fc0fd92b1dbc0d5f7e91677d90186521b..c966ee8bb8fed9e5ba36d1896f80e8edb9ea92f3 100644
(file)
--- a/
src/libmemcachedprotocol/pedantic.c
+++ b/
src/libmemcachedprotocol/pedantic.c
@@
-14,8
+14,7
@@
*/
#include "libmemcachedprotocol/common.h"
*/
#include "libmemcachedprotocol/common.h"
-
-#include <sys/types.h>
+#include "p9y/socket.hpp"
#define ensure(a) \
if (!(a)) { \
#define ensure(a) \
if (!(a)) { \
diff --git
a/src/p9y/socket.hpp
b/src/p9y/socket.hpp
index 339b5995bf285465e160c8989b12c563fdda8a5b..ca0b97d3a5f140ec48cf6bc9b71ecfb56489fe50 100644
(file)
--- a/
src/p9y/socket.hpp
+++ b/
src/p9y/socket.hpp
@@
-16,6
+16,10
@@
# include <sys/socket.h>
#endif
# include <sys/socket.h>
#endif
+#if defined HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+
#if defined HAVE_SYS_UN_H
# include <sys/un.h>
#endif
#if defined HAVE_SYS_UN_H
# include <sys/un.h>
#endif
diff --git
a/test/lib/Connection.hpp
b/test/lib/Connection.hpp
index f087a697423f38b9d159d360ce92080159441032..bcb78e4a9bf18e7a6005c89dd31e37bf94a4f568 100644
(file)
--- a/
test/lib/Connection.hpp
+++ b/
test/lib/Connection.hpp
@@
-18,6
+18,7
@@
#include "common.hpp"
#include <sys/socket.h>
#include "common.hpp"
#include <sys/socket.h>
+#include <netinet/in.h>
#include <sys/un.h>
class Connection {
#include <sys/un.h>
class Connection {