]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Make it compile on mingw32.
authorBruno Haible <bruno@clisp.org>
Mon, 16 Dec 2002 20:40:22 +0000 (20:40 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:08:52 +0000 (12:08 +0200)
ChangeLog
configure.in
lib/ChangeLog
lib/copy-file.c

index 6a827064d0a22f58ddd1106164e80a03f26b25d5..d93af6bf7117eb2312caab6406072281e074c491 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-12-16  Bruno Haible  <bruno@clisp.org>
+
+       * configure.in: Add test for <utime.h>. Needed for mingw32.
+
 2002-12-07  Bruno Haible  <bruno@clisp.org>
 
        Switch to autoconf-2.57 and automake-1.7.2.
index 6258640a98dfbbe6b8205b22696440d24be2a96d..cf0c56b54942d67833cd02bc9e693b3ca2d0906c 100644 (file)
@@ -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.
index dab3c82abdba58c6fff47e52970918d06d86db9b..a4084aff7a4a5b1086ae8671003ee72a9999421b 100644 (file)
@@ -1,3 +1,9 @@
+2002-12-16  Bruno Haible  <bruno@clisp.org>
+
+       * copy-file.c: Include <sys/utime.h> if <utime.h> doesn't exist.
+       Needed for mingw32.
+       Reported by Steven Edwards <Steven_Ed4153@yahoo.com>.
+
 2002-11-22  Bruno Haible  <bruno@clisp.org>
 
        * safe-write.h: New file, from current gnulib version.
index 0ecfdfb124c8998ee61177e3d8679b0121e76f66..1d924645b1a1ef96b4e1cbcbc9bba32adb227856 100644 (file)
 #endif
 
 #if HAVE_UTIME || HAVE_UTIMES
-# include <utime.h>
+# if HAVE_UTIME_H
+#  include <utime.h>
+# else
+#  include <sys/utime.h>
+# endif
 #endif
 
 #include "error.h"