Author mark.dickinson
Recipients Chi Hsuan Yen, Decorater, brett.cannon, haypo, jkloth, mark.dickinson, ncoghlan, paul.moore, python-dev, steve.dower, tim.golden, 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, haypo, tim.golden, jkloth, python-dev, zach.ware, steve.dower, Chi Hsuan Yen, 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