diff options
author | Guido van Rossum <guido@python.org> | 2000-07-01 01:08:11 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-07-01 01:08:11 +0000 |
commit | d4c3b0a23e7935b4657fada35cb221d65bf70e39 (patch) | |
tree | 1978df9f9041a4af8e8740ac61077f2c57523c8b /Python/getmtime.c | |
parent | b75bc3a9deb81f995bea4a1efaef3f243b5de878 (diff) | |
download | cpython-d4c3b0a23e7935b4657fada35cb221d65bf70e39.tar.gz |
Jack Jansen, Mac patch:
If we have stat.h include it if we don't have sys/stat.h
Diffstat (limited to 'Python/getmtime.c')
-rw-r--r-- | Python/getmtime.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/getmtime.c b/Python/getmtime.c index 55ec5a3b63..80fe7b5225 100644 --- a/Python/getmtime.c +++ b/Python/getmtime.c @@ -16,8 +16,14 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #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(path, fp) |