projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
utils_db_query: Introduced the query & result preparation areas.
[collectd.git]
/
src
/
memcached.c
diff --git
a/src/memcached.c
b/src/memcached.c
index
06cf200
..
348591f
100644
(file)
--- a/
src/memcached.c
+++ b/
src/memcached.c
@@
-38,6
+38,11
@@
# include <netinet/in.h>
# include <netinet/tcp.h>
# include <netinet/in.h>
# include <netinet/tcp.h>
+/* Hack to work around the missing define in AIX */
+#ifndef MSG_DONTWAIT
+# define MSG_DONTWAIT MSG_NONBLOCK
+#endif
+
#define MEMCACHED_DEF_HOST "127.0.0.1"
#define MEMCACHED_DEF_PORT "11211"
#define MEMCACHED_DEF_HOST "127.0.0.1"
#define MEMCACHED_DEF_PORT "11211"
@@
-115,7
+120,7
@@
static int memcached_query_daemon (char *buffer, int buffer_size) /* {{{ */
port = MEMCACHED_DEF_PORT;
}
port = MEMCACHED_DEF_PORT;
}
- if ((ai_return = getaddrinfo (host, port,
NULL
, &ai_list)) != 0) {
+ if ((ai_return = getaddrinfo (host, port,
&ai_hints
, &ai_list)) != 0) {
char errbuf[1024];
ERROR ("memcached: getaddrinfo (%s, %s): %s",
host, port,
char errbuf[1024];
ERROR ("memcached: getaddrinfo (%s, %s): %s",
host, port,