From 47a185f85544daaf0893de504a46be1064b50342 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 2 Aug 2009 15:29:02 +0200 Subject: [PATCH] Make the gethostname test compile again. --- ChangeLog | 3 ++- tests/test-gethostname.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.11.0