summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ab4f1d2)
raw | patch | inline | side by side (parent: ab4f1d2)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 2 Dec 2008 22:01:01 +0000 (23:01 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 2 Dec 2008 22:01:01 +0000 (23:01 +0100) |
Apparently this define has been obsoleted by RFC 3493, so SunOS 5.11 no
longer defines it. This probably is a problem somewhere else, too.
longer defines it. This probably is a problem somewhere else, too.
src/libcollectdclient/client.c | patch | blob | history |
index b3f9644a6127274c69763551589f6c398be67798..98b737232e7c6ea5004e2089079771b41432d174 100644 (file)
#include "client.h"
+/* NI_MAXHOST has been obsoleted by RFC 3493 which is a reason for SunOS 5.11
+ * to no longer define it. We'll use the old, RFC 2553 value here. */
+#ifndef NI_MAXHOST
+# define NI_MAXHOST 1025
+#endif
+
/* Secure/static macros. They work like `strcpy' and `strcat', but assure null
* termination. They work for static buffers only, because they use `sizeof'.
* The `SSTRCATF' combines the functionality of `snprintf' and `strcat' which