From: Florian Forster Date: Tue, 2 Dec 2008 22:01:01 +0000 (+0100) Subject: libcollectdclient/client.c: Define NI_MAXHOST to 1025. X-Git-Tag: collectd-4.6.0~138 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2f90319139053102f34f21825f085e7e4fe7f406;p=collectd.git libcollectdclient/client.c: Define NI_MAXHOST to 1025. 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. --- diff --git a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c index b3f9644a..98b73723 100644 --- a/src/libcollectdclient/client.c +++ b/src/libcollectdclient/client.c @@ -61,6 +61,12 @@ #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