[win32] win32_utime() tweaks to avoid warnings
[p5sagit/p5-mst-13.2.git] / win32 / win32iop.h
index d565cb5..d77f542 100644 (file)
 #endif
 #endif
 
+#ifdef _MSC_VER
+#  include <sys/utime.h>
+#else
+#  include <utime.h>
+#endif
+
 /*
  * defines for flock emulation
  */
@@ -112,8 +118,10 @@ DllExport  char*   win32_getenv(const char *name);
 DllExport  unsigned    win32_sleep(unsigned int);
 DllExport  int         win32_times(struct tms *timebuf);
 DllExport  unsigned    win32_alarm(unsigned int sec);
-DllExport  int         win32_flock(int fd, int oper);
 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, struct utimbuf *t);
+DllExport  int         win32_wait(int *status);
 
 #ifdef HAVE_DES_FCRYPT
 DllExport char *       win32_crypt(const char *txt, const char *salt);
@@ -138,6 +146,9 @@ END_EXTERN_C
 #undef sleep
 #undef times
 #undef alarm
+#undef ioctl
+#undef utime
+#undef wait
 
 #ifdef __BORLANDC__
 #undef ungetc
@@ -236,6 +247,9 @@ END_EXTERN_C
 #define sleep                  win32_sleep
 #define times                  win32_times
 #define alarm                  win32_alarm
+#define ioctl                  win32_ioctl
+#define utime                  win32_utime
+#define wait                   win32_wait
 
 #ifdef HAVE_DES_FCRYPT
 #undef crypt