projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
curl_xml: fix 3 small memory leaks
[collectd.git]
/
src
/
memcached.c
diff --git
a/src/memcached.c
b/src/memcached.c
index
b332157
..
4c9e6ad
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"
@@
-353,7
+358,7
@@
static void submit_gauge2 (const char *type, const char *type_inst,
static int memcached_read (void) /* {{{ */
{
static int memcached_read (void) /* {{{ */
{
- char buf[
1024
];
+ char buf[
4096
];
char *fields[3];
char *ptr;
char *line;
char *fields[3];
char *ptr;
char *line;