[Python-checkins] cpython: Issue #12517: Silence warning on windows buildbots (from 7fd80c61ddaa).
ross.lagerwall
python-checkins at python.org
Mon Sep 19 08:32:06 CEST 2011
http://hg.python.org/cpython/rev/dc16b6ab8e71
changeset: 72399:dc16b6ab8e71
parent: 72397:fcd29041c991
user: Ross Lagerwall <rosslagerwall at gmail.com>
date: Mon Sep 19 08:30:43 2011 +0200
summary:
Issue #12517: Silence warning on windows buildbots (from 7fd80c61ddaa).
files:
Modules/posixmodule.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -375,6 +375,8 @@
#endif
#endif
+/* A helper used by a number of POSIX-only functions */
+#ifndef MS_WINDOWS
static int
_parse_off_t(PyObject* arg, void* addr)
{
@@ -387,6 +389,7 @@
return 0;
return 1;
}
+#endif
#if defined _MSC_VER && _MSC_VER >= 1400
/* Microsoft CRT in VS2005 and higher will verify that a filehandle is
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list