--- lib/xtrans/Xtranssock.c.orig 2005-08-26 15:35:03.000000000 +0200 +++ lib/xtrans/Xtranssock.c 2005-08-26 15:35:32.000000000 +0200 @@ -275,6 +275,10 @@ #define PORTBUFSIZE 32 +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 255 +#endif + /* * This provides compatibility for apps linked against system libraries * that don't have IPv6 support.