comparison mercurial/osutil.c @ 5431:a7c832abd29c

Fix build error with Sun C compiler.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 08 Oct 2007 22:45:48 -0700
parents 0bdea0abe62e
children 0d154bce2341
comparison
equal deleted inserted replaced
5430:0bdea0abe62e 5431:a7c832abd29c
26 static PyObject *listdir_stat_##name(PyObject *self, void *x) \ 26 static PyObject *listdir_stat_##name(PyObject *self, void *x) \
27 { \ 27 { \
28 return PyInt_FromLong(((struct listdir_stat *)self)->st.name); \ 28 return PyInt_FromLong(((struct listdir_stat *)self)->st.name); \
29 } 29 }
30 30
31 listdir_slot(st_dev); 31 listdir_slot(st_dev)
32 listdir_slot(st_mode); 32 listdir_slot(st_mode)
33 listdir_slot(st_nlink); 33 listdir_slot(st_nlink)
34 listdir_slot(st_size); 34 listdir_slot(st_size)
35 listdir_slot(st_mtime); 35 listdir_slot(st_mtime)
36 listdir_slot(st_ctime); 36 listdir_slot(st_ctime)
37 37
38 static struct PyGetSetDef listdir_stat_getsets[] = { 38 static struct PyGetSetDef listdir_stat_getsets[] = {
39 {"st_dev", listdir_stat_st_dev, 0, 0, 0}, 39 {"st_dev", listdir_stat_st_dev, 0, 0, 0},
40 {"st_mode", listdir_stat_st_mode, 0, 0, 0}, 40 {"st_mode", listdir_stat_st_mode, 0, 0, 0},
41 {"st_nlink", listdir_stat_st_nlink, 0, 0, 0}, 41 {"st_nlink", listdir_stat_st_nlink, 0, 0, 0},