mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Jack Jansen, Mac patch:
If we have stat.h include it if we don't have sys/stat.h
This commit is contained in:
parent
63e97ad4ea
commit
f12d7a02a0
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue