From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx> HOST_NAME_MAX is intentionally NOT defined on BSD. Users of HOST_NAME_MAX should be using sysconf or use very conservative values. limits.h still defines _POSIX_HOST_NAME_MAX. use that instead. Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx> --- :100644 100644 0d823a2... 7065530... M test/testcpg.c test/testcpg.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/test/testcpg.c b/test/testcpg.c index 0d823a2..7065530 100644 --- a/test/testcpg.c +++ b/test/testcpg.c @@ -59,6 +59,10 @@ #include <qb/qblog.h> #endif +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX +#endif + static int quit = 0; static int show_ip = 0; static int restart = 0; -- 1.7.7.6 _______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss