From 412b89afbab91e3c104b012a2c1ec8b770ee6ab8 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 31 Jan 2009 09:32:14 +0100 Subject: lib/replace: move MAXHOSTNAMELEN to system/network.h Some platforms define it in netdb.h, so we should define the replace after including metdb.h. metze --- lib/replace/system/network.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/replace/system/network.h') diff --git a/lib/replace/system/network.h b/lib/replace/system/network.h index 473d79b5f2..40d20db2d4 100644 --- a/lib/replace/system/network.h +++ b/lib/replace/system/network.h @@ -271,7 +271,11 @@ int rep_socketpair(int d, int type, int protocol, int sv[2]); #endif #ifndef HOST_NAME_MAX -#define HOST_NAME_MAX 256 +#define HOST_NAME_MAX 255 +#endif + +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN HOST_NAME_MAX #endif #ifndef HAVE_SA_FAMILY_T -- cgit