]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Not all Windows environments have sys/utime.h, so obey the configure check.
authorTim Kientzle <kientzle@gmail.com>
Sun, 13 Dec 2009 00:00:52 +0000 (19:00 -0500)
committerTim Kientzle <kientzle@gmail.com>
Sun, 13 Dec 2009 00:00:52 +0000 (19:00 -0500)
SVN-Revision: 1728

cpio/cpio_windows.c
libarchive/archive_windows.c
tar/bsdtar_windows.c

index 22ede4dfd56fd793fcda8322104f3ba29735e0cc..841e94928868471951451e505f6786546b3920cf 100644 (file)
@@ -33,7 +33,9 @@
 #include <fcntl.h>
 #include <io.h>
 #include <stddef.h>
+#ifdef HAVE_SYS_UTIME_H
 #include <sys/utime.h>
+#endif
 #include <sys/stat.h>
 #include <process.h>
 #include <stdlib.h>
index 78fe8c95d9df7d99d3224c3e9bc13ea192bb24a0..d47894237c0ebf402bc359de79067abecb36cc26 100644 (file)
@@ -51,7 +51,7 @@
 #include <ctype.h>
 #include <errno.h>
 #include <stddef.h>
-#ifndef __BORLANDC__
+#ifdef HAVE_SYS_UTIME_H
 #include <sys/utime.h>
 #endif
 #include <sys/stat.h>
index a44d6aa3758048826f2a3d121b0408e4d37a6f0c..5fc2d9fd6670f6327002789acc220e4a5865a38e 100644 (file)
@@ -33,7 +33,9 @@
 #include <fcntl.h>
 #include <io.h>
 #include <stddef.h>
+#ifdef HAVE_SYS_UTIME_H
 #include <sys/utime.h>
+#endif
 #include <sys/stat.h>
 #include <process.h>
 #include <stdlib.h>