projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7df2428
)
commom: Fixed AIX doesn't have MSG_DONTWAIT
author
Chao Yang
<cyang244@bloomberg.net>
Fri, 23 Sep 2016 14:48:53 +0000
(10:48 -0400)
committer
Chao Yang
<cyang244@bloomberg.net>
Fri, 23 Sep 2016 14:48:53 +0000
(10:48 -0400)
src/daemon/common.c
patch
|
blob
|
history
diff --git
a/src/daemon/common.c
b/src/daemon/common.c
index
fba51ef
..
d3a6ae4
100644
(file)
--- a/
src/daemon/common.c
+++ b/
src/daemon/common.c
@@
-64,6
+64,11
@@
extern kstat_ctl_t *kc;
#endif
+/* AIX doesn't have MSG_DONTWAIT */
+#ifndef MSG_DONTWAIT
+# define MSG_DONTWAIT MSG_NONBLOCK
+#endif
+
#if !HAVE_GETPWNAM_R
static pthread_mutex_t getpwnam_r_lock = PTHREAD_MUTEX_INITIALIZER;
#endif