aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-09-07 09:53:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-09-07 09:53:21 +0000
commit5a8d1c4cd1e6499ec80ee4436baea76b80f76d12 (patch)
treea2f0af1bad4735d44171ab5b1feea0f70ccb842d
parent46372c04ee06d75e2b7c0c60b1f80ee926a45749 (diff)
HAVE_SYS_UTIME_H adjustments
-rw-r--r--src/config-win32.h4
-rw-r--r--src/config.h.in5
-rw-r--r--src/main.c6
3 files changed, 11 insertions, 4 deletions
diff --git a/src/config-win32.h b/src/config-win32.h
index ccce28b6c..562b60590 100644
--- a/src/config-win32.h
+++ b/src/config-win32.h
@@ -17,8 +17,8 @@
/* Define if you have utime() */
#define HAVE_UTIME 1
-/* Define if you have utime.h */
-#define HAVE_UTIME_H 1
+/* Define if you have the <sys/utime.h> header file */
+#define HAVE_SYS_UTIME_H 1
/*************************************************
* This section is for compiler specific defines.*
diff --git a/src/config.h.in b/src/config.h.in
index cfd34fd12..31825bf65 100644
--- a/src/config.h.in
+++ b/src/config.h.in
@@ -14,5 +14,8 @@
/* Define if you have utime() */
#undef HAVE_UTIME
-/* Define if you have utime.h */
+/* Define if you have the <utime.h> header file */
#undef HAVE_UTIME_H
+
+/* Define if you have thhe <sys/utime.h> header file */
+#undef HAVE_SYS_UTIME_H
diff --git a/src/main.c b/src/main.c
index c776e243f..4d24a82b7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -61,7 +61,11 @@
#endif
#ifdef HAVE_UTIME_H
-#include <utime.h>
+ #include <utime.h>
+#else
+ #ifdef HAVE_SYS_UTIME_H
+ #include <sys/utime.h>
+ #endif
#endif
/* The last #include file should be: */