From: Bruno Haible Date: Sun, 2 Aug 2009 18:55:40 +0000 (+0200) Subject: Fix compilation error on mingw. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5043d7c8c7975226de1c4cf4d67e42cede15767b;hp=47a185f85544daaf0893de504a46be1064b50342;p=pspp Fix compilation error on mingw. --- diff --git a/ChangeLog b/ChangeLog index d0308b91e7..f3fa7d50f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-08-02 Bruno Haible + + * lib/gethostname.c: Include limits.h. + Reported by Martin Lambers . + 2009-08-02 Simon Josefsson Bruno Haible diff --git a/lib/gethostname.c b/lib/gethostname.c index ef58a40313..6259deba27 100644 --- a/lib/gethostname.c +++ b/lib/gethostname.c @@ -76,6 +76,9 @@ gethostname (char *name, size_t len) /* Get winsock2.h. */ #include +/* Get INT_MAX. */ +#include + /* Get set_winsock_errno. */ #include "w32sock.h"