Martin Lambers wrote: > This requires to include limits.h in gethostname.c, to get INT_MAX. > > Martin > > > diff --git a/lib/gethostname.c b/lib/gethostname.c > index ef58a40..422184a 100644 > --- a/lib/gethostname.c > +++ b/lib/gethostname.c > @@ -76,6 +76,9 @@ gethostname (char *name, size_t len) > /* Get winsock2.h. */ > #include <unistd.h> > > +/* Get INT_MAX. */ > +#include <limits.h> > + > /* Get set_winsock_errno. */ > #include "w32sock.h"
Oops, you're right. Thanks. Applied. Bruno