From: Gurusamy Sarathy Date: Mon, 9 Feb 1998 00:27:16 +0000 (+0000) Subject: [win32] win32_utime() tweaks to avoid warnings X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3b405fc5a4874f8f9b9c090b5e21438c471308f6;p=p5sagit%2Fp5-mst-13.2.git [win32] win32_utime() tweaks to avoid warnings p4raw-id: //depot/win32/perl@487 --- diff --git a/win32/win32.c b/win32/win32.c index 83ba873..01c43b8 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -831,7 +831,7 @@ filetime_from_time(PFILETIME pFileTime, time_t Time) } DllExport int -win32_utime(const char *filename, const struct utimbuf *times) +win32_utime(const char *filename, struct utimbuf *times) { HANDLE handle; FILETIME ftCreate; diff --git a/win32/win32iop.h b/win32/win32iop.h index d12e882..d77f542 100644 --- a/win32/win32iop.h +++ b/win32/win32iop.h @@ -13,6 +13,12 @@ #endif #endif +#ifdef _MSC_VER +# include +#else +# include +#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