From d78fab6b4e9be83b781212f6a9f3fde0c092e81d Mon Sep 17 00:00:00 2001 From: darylm503 Date: Sat, 24 Mar 2012 01:19:06 +0000 Subject: EADK (StdLib, AppPkg, StdLibPrivateInternalFiles): Python Beta Release. Clean up and clearly differentiate required and optional items in configuration files. Enable the system command and synchronize configuration options between all CPU architectures. Replace the UEFI_ENV macro with UEFI_C_SOURCE to align with Linux and Posix conventions. Update copyrights and versions and make minor cosmetic enhancements to files. Fix compiler-specific build errors. Add Python-specific ReadMe file. Signed-off-by: darylm503 Reviewed-by: geekboy15a Reviewed-by: jljusten Reviewed-by: leegrosenbaum git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13119 6f19259b-4bc3-4df7-8a09-765794883524 --- AppPkg/Applications/Python/PyMod-2.7.2/Modules/selectmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'AppPkg/Applications/Python/PyMod-2.7.2/Modules/selectmodule.c') diff --git a/AppPkg/Applications/Python/PyMod-2.7.2/Modules/selectmodule.c b/AppPkg/Applications/Python/PyMod-2.7.2/Modules/selectmodule.c index d1fe57c145..81e5af88a7 100644 --- a/AppPkg/Applications/Python/PyMod-2.7.2/Modules/selectmodule.c +++ b/AppPkg/Applications/Python/PyMod-2.7.2/Modules/selectmodule.c @@ -111,7 +111,7 @@ seq2set(PyObject *seq, fd_set *set, pylist fd2obj[FD_SETSIZE + 1]) v = PyObject_AsFileDescriptor( o ); if (v == -1) goto finally; -#if defined(_MSC_VER) && !defined(UEFI_ENV) +#if defined(_MSC_VER) && !defined(UEFI_C_SOURCE) max = 0; /* not used for Win32 */ #else /* !_MSC_VER */ if (v < 0 || v >= FD_SETSIZE) { @@ -164,7 +164,7 @@ set2list(fd_set *set, pylist fd2obj[FD_SETSIZE + 1]) for (j = 0; fd2obj[j].sentinel >= 0; j++) { fd = fd2obj[j].fd; if (FD_ISSET(fd, set)) { -#if !defined(_MSC_VER) || defined(UEFI_ENV) +#if !defined(_MSC_VER) || defined(UEFI_C_SOURCE) if (fd > FD_SETSIZE) { PyErr_SetString(PyExc_SystemError, "filedescriptor out of range returned in select()"); -- cgit v1.2.3