Jack Jansen, Mac patch:

If we have stat.h include it if we don't have sys/stat.h
This commit is contained in:
Guido van Rossum 2000-07-01 01:08:11 +00:00
parent 63e97ad4ea
commit f12d7a02a0

View file

@ -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)