File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 95
95
#include <linux/soundcard.h>
96
96
#include <linux/kd.h>
97
97
#include <linux/mtio.h>
98
+
99
+ #ifdef HAVE_SYS_MOUNT_FSCONFIG
100
+ /*
101
+ * glibc >= 2.36 linux/mount.h conflicts with sys/mount.h,
102
+ * which in turn prevents use of linux/fs.h. So we have to
103
+ * define the constants ourselves for now.
104
+ */
105
+ #define FS_IOC_GETFLAGS _IOR('f', 1, long)
106
+ #define FS_IOC_SETFLAGS _IOW('f', 2, long)
107
+ #define FS_IOC_GETVERSION _IOR('v', 1, long)
108
+ #define FS_IOC_SETVERSION _IOW('v', 2, long)
109
+ #define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
110
+ #define FS_IOC32_GETFLAGS _IOR('f', 1, int)
111
+ #define FS_IOC32_SETFLAGS _IOW('f', 2, int)
112
+ #define FS_IOC32_GETVERSION _IOR('v', 1, int)
113
+ #define FS_IOC32_SETVERSION _IOW('v', 2, int)
114
+ #else
98
115
#include <linux/fs.h>
116
+ #endif
99
117
#include <linux/fd.h>
100
118
#if defined(CONFIG_FIEMAP )
101
119
#include <linux/fiemap.h>
Original file line number Diff line number Diff line change @@ -1149,6 +1149,9 @@ config_host_data.set('HAVE_PTY_H', cc.has_header('pty.h'))
1149
1149
config_host_data.set(' HAVE_SYS_IOCCOM_H' , cc.has_header(' sys/ioccom.h' ))
1150
1150
config_host_data.set(' HAVE_SYS_KCOV_H' , cc.has_header(' sys/kcov.h' ))
1151
1151
config_host_data.set(' HAVE_SYSTEM_FUNCTION' , cc.has_function(' system' , prefix : ' #include <stdlib.h>' ))
1152
+ config_host_data.set(' HAVE_SYS_MOUNT_FSCONFIG' ,
1153
+ cc.has_header_symbol(' sys/mount.h' , ' FSCONFIG_SET_FLAG' ))
1154
+
1152
1155
1153
1156
config_host_data.set(' CONFIG_PREADV' , cc.has_function(' preadv' , prefix : ' #include <sys/uio.h>' ))
1154
1157
You can’t perform that action at this time.
0 commit comments