Message124589
| Author |
Scott.Rostrup |
| Recipients |
Scott.Rostrup, jbinder, terry.reedy |
| Date |
2010年12月24日.04:05:37 |
| SpamBayes Score |
0.00078273687 |
| Marked as misclassified |
No |
| Message-id |
<1293163539.64.0.896848488564.issue8548@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I just encountered this error in python 3.1.3 on cygwin 1.7.
I used the same fix as jbinder.
Old Modules/main.c (line 13):
#if defined(MS_WINDOWS) || defined(__CYGWIN__)
#include <windows.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#define PATH_MAX MAXPATHLEN
#endif
#endif
I guess now cygwin is defining PATH_MAX, one possible fix with ifndef:
#if defined(MS_WINDOWS) || defined(__CYGWIN__)
#include <windows.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#ifndef
#define PATH_MAX MAXPATHLEN
#endif
#endif
#endif
This compiled and worked for me and it appears jbinder as well. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年12月24日 04:05:39 | Scott.Rostrup | set | recipients:
+ Scott.Rostrup, terry.reedy, jbinder |
| 2010年12月24日 04:05:39 | Scott.Rostrup | set | messageid: <1293163539.64.0.896848488564.issue8548@psf.upfronthosting.co.za> |
| 2010年12月24日 04:05:38 | Scott.Rostrup | link | issue8548 messages |
| 2010年12月24日 04:05:37 | Scott.Rostrup | create |
|