[Python-checkins] CVS: python/dist/src/Objects fileobject.c,2.107,2.108

Tim Peters tim_one@users.sourceforge.net
Wed, 17 Jan 2001 19:03:18 -0800


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv13775/python/dist/src/Objects

Modified Files:
	fileobject.c 
Log Message:
Move distributed and duplicated config for stat() and fstat() into pyport.h.


Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.107
retrieving revision 2.108
diff -C2 -r2.107 -r2.108
*** fileobject.c	2001/01/16 20:53:31	2.107
--- fileobject.c	2001/01/18 03:03:16	2.108
***************
*** 9,32 ****
  #endif /* DONT_HAVE_SYS_TYPES_H */
  
- /* We expect that fstat exists on most systems.
-    It's confirmed on Unix, Mac and Windows.
-    If you don't have it, add #define DONT_HAVE_FSTAT to your config.h. */
- #ifndef DONT_HAVE_FSTAT
- #define HAVE_FSTAT
- 
- #ifndef DONT_HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
- 
- #ifndef DONT_HAVE_SYS_STAT_H
- #include <sys/stat.h>
- #else
- #ifdef HAVE_STAT_H
- #include <stat.h>
- #endif
- #endif
- 
- #endif /* DONT_HAVE_FSTAT */
- 
  #ifdef HAVE_UNISTD_H
  #include <unistd.h>
--- 9,12 ----