Message275290
| Author |
mark.dickinson |
| Recipients |
Decorater, brett.cannon, jkloth, mark.dickinson, ncoghlan, paul.moore, python-dev, steve.dower, tim.golden, vstinner, yan12125, zach.ware |
| Date |
2016年09月09日.08:55:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1473411359.23.0.804888664296.issue27781@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It looks as though this change in posixmodule.c is the cause:
#ifdef MS_WINDOWS
- if (path->wide)
- fd = _wopen(path->wide, flags, mode);
- else
+ fd = _wopen(path->wide, flags, mode);
#endif
#ifdef HAVE_OPENAT
if (dir_fd != DEFAULT_DIR_FD)
fd = openat(dir_fd, path->narrow, flags, mode);
else
-#endif
fd = open(path->narrow, flags, mode);
+#endif
The move of the final #endif means that `fd` is not defined on OS X. If I move the #endif back again, the compile succeeds. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年09月09日 08:55:59 | mark.dickinson | set | recipients:
+ mark.dickinson, brett.cannon, paul.moore, ncoghlan, vstinner, tim.golden, jkloth, python-dev, zach.ware, steve.dower, yan12125, Decorater |
| 2016年09月09日 08:55:59 | mark.dickinson | set | messageid: <1473411359.23.0.804888664296.issue27781@psf.upfronthosting.co.za> |
| 2016年09月09日 08:55:59 | mark.dickinson | link | issue27781 messages |
| 2016年09月09日 08:55:59 | mark.dickinson | create |
|