From: Bruno Haible Date: Sun, 2 Aug 2009 13:29:02 +0000 (+0200) Subject: Make the gethostname test compile again. X-Git-Tag: v0.1~5733 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=47a185f85544daaf0893de504a46be1064b50342;p=gnulib.git Make the gethostname test compile again. --- diff --git a/ChangeLog b/ChangeLog index ee140460f..d0308b91e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,7 +4,8 @@ Ensure HOST_NAME_MAX as part of the gethostname module. * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms, define also HOST_NAME_MAX. - * tests/test-gethostname.c (main): Check also HOST_NAME_MAX. + * tests/test-gethostname.c: Include . + (main): Check also HOST_NAME_MAX. * doc/posix-headers/limits.texi: Document the mingw problem. 2009-08-02 Bruno Haible diff --git a/tests/test-gethostname.c b/tests/test-gethostname.c index c1914fd91..3ab0b86af 100644 --- a/tests/test-gethostname.c +++ b/tests/test-gethostname.c @@ -17,7 +17,10 @@ #include +/* Get gethostname() declaration. */ #include +/* Get HOST_NAME_MAX definition. */ +#include #include #include