summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-01-18 03:03:16 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-01-18 03:03:16 (GMT)
commit60f42b50d894d3c9798c50e063ae758a1a5987a2 (patch)
tree5a19a8a81cf7ebcd38e46460d0c32c24ff96b6b2 /Python
parentd2bf3b7ca6f702f54b8e81ea8d194fc116ac6791 (diff)
downloadcpython-60f42b50d894d3c9798c50e063ae758a1a5987a2.zip
cpython-60f42b50d894d3c9798c50e063ae758a1a5987a2.tar.gz
cpython-60f42b50d894d3c9798c50e063ae758a1a5987a2.tar.bz2
Move distributed and duplicated config for stat() and fstat() into pyport.h.
Diffstat (limited to 'Python')
-rw-r--r--Python/getmtime.c10
-rw-r--r--Python/import.c19
2 files changed, 0 insertions, 29 deletions
diff --git a/Python/getmtime.c b/Python/getmtime.c
index 4c7ecd6..c77782d 100644
--- a/Python/getmtime.c
+++ b/Python/getmtime.c
@@ -6,16 +6,6 @@
#include "Python.h"
#include "config.h"
-#include <stdio.h>
-#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
-
time_t
PyOS_GetLastModificationTime(char *path, FILE *fp)
{
diff --git a/Python/import.c b/Python/import.c
index a97d0c6..da4015f 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -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 */