mercurial/osutil.c
changeset 5398 ecde0b7e0b3f
parent 5397 11caa374f497
child 5416 ca890c0c3f1f
--- a/mercurial/osutil.c	Sat Oct 06 14:14:11 2007 -0300
+++ b/mercurial/osutil.c	Sat Oct 06 14:14:11 2007 -0300
@@ -8,7 +8,6 @@
 */
 
 #define _ATFILE_SOURCE
-#define _LARGEFILE64_SOURCE
 #include <Python.h>
 #include <alloca.h>
 #include <dirent.h>
@@ -113,7 +112,7 @@
 static PyObject *listdir(PyObject *self, PyObject *args, PyObject *kwargs)
 {
     DIR *dir = NULL;
-    struct dirent64 *ent;
+    struct dirent *ent;
     PyObject *list = NULL;
     PyObject *ctor_args = NULL;
     int all_kinds = 1;
@@ -146,7 +145,7 @@
     memcpy(full_path, path, path_len);
     full_path[path_len] = '/';
 
-    while ((ent = readdir64(dir))) {
+    while ((ent = readdir(dir))) {
         PyObject *name = NULL;
         PyObject *py_kind = NULL;
         PyObject *val = NULL;