boost/ocaml/python - all NON-WORKING at the moment.
[fedora-mingw.git] / python / python-2.5.1-listdir.patch
1 --- Python-2.5.1/Modules/posixmodule.c.orig     2007-04-04 14:30:56.000000000 -0400
2 +++ Python-2.5.1/Modules/posixmodule.c  2008-06-14 17:35:47.000000000 -0400
3 @@ -2160,7 +2160,6 @@
4         struct dirent *ep;
5         int arg_is_unicode = 1;
6  
7 -       errno = 0;
8         if (!PyArg_ParseTuple(args, "U:listdir", &v)) {
9                 arg_is_unicode = 0;
10                 PyErr_Clear();
11 @@ -2176,6 +2175,7 @@
12                 return NULL;
13         }
14         for (;;) {
15 +               errno = 0;
16                 Py_BEGIN_ALLOW_THREADS
17                 ep = readdir(dirp);
18                 Py_END_ALLOW_THREADS