projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
605dab5
)
Correct compilation on FreeBSD, set HOST_NAME_MAX to _POSIX_HOST_NAME_MAX if isn...
author
biancalana
<ale@biancalanas.net>
Fri, 6 Jul 2012 01:07:15 +0000
(22:07 -0300)
committer
Florian Forster
<octo@collectd.org>
Mon, 9 Jul 2012 05:42:29 +0000
(07:42 +0200)
src/redis.c
patch
|
blob
|
history
diff --git
a/src/redis.c
b/src/redis.c
index
b694e09
..
86062d9
100644
(file)
--- a/
src/redis.c
+++ b/
src/redis.c
@@
-28,6
+28,10
@@
#include <pthread.h>
#include <credis.h>
+#ifndef HOST_NAME_MAX
+# define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
+#endif
+
#define REDIS_DEF_HOST "localhost"
#define REDIS_DEF_PORT 6379
#define REDIS_DEF_TIMEOUT 2000