Steve Dower added the comment:

Looks like the easiest fix here is to remove the HAVE_SYS_STAT_H definition and 
replace it with the include directly:

/* Define to 1 if you have the <sys/stat.h> header file.  */
/* #define HAVE_SYS_STAT_H 1 */
#ifndef MS_WINCE
/* Rather than define HAVE_SYS_STAT_H, we include it now and
   rename two of the functions. The rename must be after the
   header is included. */
#include <sys/stat.h>
#define fstat _fstati64
#define stat _stati64
#endif


Does anyone know whether this sort of thing will cause problems with the build? 
It seems fine to me, but someone with more experience may know better.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23152>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to