Mercurial > cpython-lru_cache-weakref
diff Python/getmtime.c @ 13267:4ce255495da3 legacy-trunk
Jack Jansen, Mac patch:
If we have stat.h include it if we don't have sys/stat.h
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 01 Jul 2000 01:08:11 +0000 |
| parents | 87ee82e5c56d |
| children | f79434ee41fa |
line wrap: on
line diff
--- a/Python/getmtime.c Sat Jul 01 01:06:56 2000 +0000 +++ b/Python/getmtime.c Sat Jul 01 01:08:11 2000 +0000 @@ -16,8 +16,14 @@ #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)
