From: Bruno Haible Date: Mon, 16 Dec 2002 20:40:22 +0000 (+0000) Subject: Make it compile on mingw32. X-Git-Tag: v0.12~1198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc02b7174bccca19a06e461741a657eb9429647f;p=thirdparty%2Fgettext.git Make it compile on mingw32. --- diff --git a/ChangeLog b/ChangeLog index 6a827064d..d93af6bf7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-12-16 Bruno Haible + + * configure.in: Add test for . Needed for mingw32. + 2002-12-07 Bruno Haible Switch to autoconf-2.57 and automake-1.7.2. diff --git a/configure.in b/configure.in index 6258640a9..cf0c56b54 100644 --- a/configure.in +++ b/configure.in @@ -57,7 +57,7 @@ dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS(limits.h malloc.h string.h unistd.h values.h) +AC_CHECK_HEADERS(limits.h malloc.h string.h unistd.h utime.h values.h) gt_STDBOOL_H dnl Checks for typedefs, structures, and compiler characteristics. diff --git a/lib/ChangeLog b/lib/ChangeLog index dab3c82ab..a4084aff7 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2002-12-16 Bruno Haible + + * copy-file.c: Include if doesn't exist. + Needed for mingw32. + Reported by Steven Edwards . + 2002-11-22 Bruno Haible * safe-write.h: New file, from current gnulib version. diff --git a/lib/copy-file.c b/lib/copy-file.c index 0ecfdfb12..1d924645b 100644 --- a/lib/copy-file.c +++ b/lib/copy-file.c @@ -33,7 +33,11 @@ #endif #if HAVE_UTIME || HAVE_UTIMES -# include +# if HAVE_UTIME_H +# include +# else +# include +# endif #endif #include "error.h"