mercurial/osutil.c
changeset 5397 11caa374f497
parent 5396 5105b119edd2
child 5398 ecde0b7e0b3f
equal deleted inserted replaced
5396:5105b119edd2 5397:11caa374f497
     7  the GNU General Public License, incorporated herein by reference.
     7  the GNU General Public License, incorporated herein by reference.
     8 */
     8 */
     9 
     9 
    10 #define _ATFILE_SOURCE
    10 #define _ATFILE_SOURCE
    11 #define _LARGEFILE64_SOURCE
    11 #define _LARGEFILE64_SOURCE
       
    12 #include <Python.h>
    12 #include <alloca.h>
    13 #include <alloca.h>
    13 #include <dirent.h>
    14 #include <dirent.h>
    14 #include <fcntl.h>
    15 #include <fcntl.h>
    15 #include <string.h>
    16 #include <string.h>
    16 #include <sys/stat.h>
    17 #include <sys/stat.h>
    17 #include <sys/types.h>
    18 #include <sys/types.h>
    18 #include <unistd.h>
    19 #include <unistd.h>
    19 
       
    20 #include "Python.h"
       
    21 
    20 
    22 struct listdir_stat {
    21 struct listdir_stat {
    23     PyObject_HEAD
    22     PyObject_HEAD
    24     struct stat st;
    23     struct stat st;
    25 };
    24 };