Roumen Petrov added the comment: Hi Mark, #else before is not solution. See unified diff below as post by Scott Rostrup lack definition
Some additional information: a) move outside #ifdef HAVE_FCNTL_H : definition PATH_MAX is not related to control functions on open files (fcntl.h) b) HAVE_FCNTL_H is defined for MSC build as well. so no impact on other build --- a/Modules/main.c +++ b/Modules/main.c @@ -9,6 +9,8 @@ #include <windows.h> #ifdef HAVE_FCNTL_H #include <fcntl.h> +#endif +#ifndef PATH_MAX #define PATH_MAX MAXPATHLEN #endif #endif -- ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8548> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com