summaryrefslogtreecommitdiff
path: root/win32/win32iop.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-02-09 00:27:16 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-02-09 00:27:16 +0000
commit3b405fc5a4874f8f9b9c090b5e21438c471308f6 (patch)
tree3f0c3672be0017109524d9b440258c16b6940f33 /win32/win32iop.h
parentad0751ec707865dddd3f2c245757f2ef3ccf0dd8 (diff)
downloadperl-3b405fc5a4874f8f9b9c090b5e21438c471308f6.tar.gz
[win32] win32_utime() tweaks to avoid warnings
p4raw-id: //depot/win32/perl@487
Diffstat (limited to 'win32/win32iop.h')
-rw-r--r--win32/win32iop.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/win32/win32iop.h b/win32/win32iop.h
index d12e882b9b..d77f542500 100644
--- a/win32/win32iop.h
+++ b/win32/win32iop.h
@@ -13,6 +13,12 @@
#endif
#endif
+#ifdef _MSC_VER
+# include <sys/utime.h>
+#else
+# include <utime.h>
+#endif
+
/*
* defines for flock emulation
*/
@@ -114,7 +120,7 @@ DllExport int win32_times(struct tms *timebuf);
DllExport unsigned win32_alarm(unsigned int sec);
DllExport int win32_stat(const char *path, struct stat *buf);
DllExport int win32_ioctl(int i, unsigned int u, char *data);
-DllExport int win32_utime(const char *f, const struct utimbuf *t);
+DllExport int win32_utime(const char *f, struct utimbuf *t);
DllExport int win32_wait(int *status);
#ifdef HAVE_DES_FCRYPT