From d4c3b0a23e7935b4657fada35cb221d65bf70e39 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 1 Jul 2000 01:08:11 +0000 Subject: Jack Jansen, Mac patch: If we have stat.h include it if we don't have sys/stat.h --- Python/getmtime.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Python/getmtime.c') 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 +#ifndef DONT_HAVE_SYS_TYPES_H #include +#endif +#ifndef DONT_HAVE_SYS_STAT_H #include +#elif defined(HAVE_STAT_H) +#include +#endif time_t PyOS_GetLastModificationTime(path, fp) -- cgit v1.2.1