File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 10
10
11
11
#include <stdint.h>
12
12
#include <unistd.h>
13
+ #include <sys/stat.h>
13
14
#include "lapi/syscalls.h"
15
+
14
16
/*
15
17
* Timestamp structure for the timestamps in struct statx.
16
18
*
21
23
*
22
24
* __reserved is held in case we need a yet finer resolution.
23
25
*/
24
- #if defined(HAVE_STRUCT_STATX_TIMESTAMP )
25
- #include <sys/stat.h>
26
- #else
26
+ #ifndef HAVE_STRUCT_STATX_TIMESTAMP
27
27
struct statx_timestamp {
28
28
int64_t tv_sec ;
29
29
uint32_t tv_nsec ;
@@ -67,9 +67,7 @@ struct statx_timestamp {
67
67
* will have values installed for compatibility purposes so that stat() and
68
68
* co. can be emulated in userspace.
69
69
*/
70
- #if defined(HAVE_STRUCT_STATX )
71
- #include <sys/stat.h>
72
- #else
70
+ #ifndef HAVE_STRUCT_STATX
73
71
struct statx {
74
72
/* 0x00 */
75
73
uint32_t stx_mask ;
@@ -102,7 +100,7 @@ struct statx {
102
100
};
103
101
#endif
104
102
105
- #if !defined( HAVE_STATX )
103
+ #ifndef HAVE_STATX
106
104
107
105
/*
108
106
* statx: wrapper function of statx
You can’t perform that action at this time.
0 commit comments