This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove duplicate declaration of win32_stat from win32/win32iop.h
[perl5.git] / win32 / win32iop.h
index 11d4219..842bc07 100644 (file)
@@ -130,7 +130,6 @@ DllExport  int              win32_putenv(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_stat(const char *path, Stat_t *buf);
 DllExport  char*       win32_longpath(char *path);
 DllExport  char*       win32_ansipath(const WCHAR *path);
 DllExport  int         win32_ioctl(int i, unsigned int u, char *data);
@@ -289,11 +288,11 @@ END_EXTERN_C
 #  undef abort
 #endif
 #define abort()                        win32_abort()
-#ifdef UNDER_CE
+#if defined(UNDER_CE) || defined(__MINGW32__)
 #  undef fstat
 #endif
 #define fstat(fd,bufptr)       win32_fstat(fd,bufptr)
-#ifdef UNDER_CE
+#if defined(UNDER_CE) || defined(__MINGW32__)
 #  undef stat
 #endif
 #define stat(pth,bufptr)       win32_stat(pth,bufptr)
@@ -448,6 +447,11 @@ END_EXTERN_C
 #  undef kill
 #endif
 #define kill                   win32_kill
+#ifdef UNDER_CE
+#  undef killpg
+#endif
+#define killpg(pid, sig)       win32_kill(pid, -(sig))
+
 
 #ifdef UNDER_CE
 #  undef opendir