homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:59mark.dickinsonsetrecipients: + mark.dickinson, brett.cannon, paul.moore, ncoghlan, vstinner, tim.golden, jkloth, python-dev, zach.ware, steve.dower, yan12125, Decorater
2016年09月09日 08:55:59mark.dickinsonsetmessageid: <1473411359.23.0.804888664296.issue27781@psf.upfronthosting.co.za>
2016年09月09日 08:55:59mark.dickinsonlinkissue27781 messages
2016年09月09日 08:55:59mark.dickinsoncreate

AltStyle によって変換されたページ (->オリジナル) /