From 2f90319139053102f34f21825f085e7e4fe7f406 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 2 Dec 2008 23:01:01 +0100 Subject: [PATCH] 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. --- src/libcollectdclient/client.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.11.0