X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Fcommon.c;h=c80abcbee65cb1e95a8ef14dc065d7082f83c4c2;hp=654a5a0968a741d9c1b0a7997dc888ed262b0515;hb=8c5927c52f4eefebaad3a6ecadc253ee9007ebb5;hpb=a35e7bb5ee1004f9631a9c4b9569b2cc00016ae5 diff --git a/src/daemon/common.c b/src/daemon/common.c index 654a5a09..c80abcbe 100644 --- a/src/daemon/common.c +++ b/src/daemon/common.c @@ -68,6 +68,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 @@ -1134,7 +1139,7 @@ int parse_value (const char *value_orig, value_t *ret_value, int ds_type) } if (value == endptr) { - ERROR ("parse_value: Failed to parse string as %s: %s.", + ERROR ("parse_value: Failed to parse string as %s: \"%s\".", DS_TYPE_TO_STRING (ds_type), value); sfree (value); return -1;