[Python-checkins] CVS: python/dist/src/Python getmtime.c,2.12,2.13
Guido van Rossum
python-dev@python.org
Fri, 30 Jun 2000 18:08:14 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv24712
Modified Files:
getmtime.c
Log Message:
Jack Jansen, Mac patch:
If we have stat.h include it if we don't have sys/stat.h
Index: getmtime.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/getmtime.c,v
retrieving revision 2.12
retrieving revision 2.13
diff -C2 -r2.12 -r2.13
*** getmtime.c 2000/06/30 23:58:06 2.12
--- getmtime.c 2000/07/01 01:08:11 2.13
***************
*** 17,22 ****
--- 17,28 ----
#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