diff options
author | Guido van Rossum <guido@python.org> | 2000-07-01 01:08:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-07-01 01:08:11 (GMT) |
commit | f12d7a02a02845bfec241d33c480ddad6a82df9e (patch) | |
tree | ca5d4dc3c44111ccd89efbc01f50e5c4acc493f7 | |
parent | 63e97ad4eaa1f5249cf08ad9de307300ac9fc47f (diff) | |
download | cpython-f12d7a02a02845bfec241d33c480ddad6a82df9e.zip cpython-f12d7a02a02845bfec241d33c480ddad6a82df9e.tar.gz cpython-f12d7a02a02845bfec241d33c480ddad6a82df9e.tar.bz2 |
Jack Jansen, Mac patch:
If we have stat.h include it if we don't have sys/stat.h
-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 55ec5a3..80fe7b5 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) |