diff Python/import.c @ 15978:24dafbb0db58 legacy-trunk

Move distributed and duplicated config for stat() and fstat() into pyport.h.
author Tim Peters <tim.peters@gmail.com>
date Thu, 18 Jan 2001 03:03:16 +0000
parents eb1767b068fe
children fd8c7203251f
line wrap: on
line diff
--- a/Python/import.c	Thu Jan 18 02:22:22 2001 +0000
+++ b/Python/import.c	Thu Jan 18 03:03:16 2001 +0000
@@ -19,22 +19,6 @@
 #include <unistd.h>
 #endif
 
-/* We expect that stat exists on most systems.
-   It's confirmed on Unix, Mac and Windows.
-   If you don't have it, add #define DONT_HAVE_STAT to your config.h. */
-#ifndef DONT_HAVE_STAT
-#define HAVE_STAT
-
-#ifndef DONT_HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
-#ifndef DONT_HAVE_SYS_STAT_H
-#include <sys/stat.h>
-#elif defined(HAVE_STAT_H)
-#include <stat.h>
-#endif
-
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
@@ -48,9 +32,6 @@
 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
 #endif
 
-#endif
-
-
 extern time_t PyOS_GetLastModificationTime(char *, FILE *);
 						/* In getmtime.c */