chiark / gitweb /
Enhance the dealing with glibc-2.28
authorSven Eden <yamakuzure@gmx.net>
Wed, 26 Sep 2018 15:58:00 +0000 (17:58 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 26 Sep 2018 15:59:55 +0000 (17:59 +0200)
It appears that the necessary bits were already there, but commented
out. When meson checked for 'struct statx', the inclusion of both
sys/stat.h and linux/stat.h where commented out. Uncommenting them
should be enough.

meson.build
src/basic/missing.h

index 8b62c789ede34904f7bcf3f1d3348e6feb4b3861..45262dcffe503b45ba79795b18b3976d6f2b50fa 100644 (file)
@@ -491,8 +491,8 @@ decl_headers = '''
 #include <uchar.h>
 #include <linux/ethtool.h>
 #include <linux/fib_rules.h>
-//#include <linux/stat.h>
-//#include <sys/stat.h>
+#include <linux/stat.h>
+#include <sys/stat.h>
 '''
 # FIXME: key_serial_t is only defined in keyutils.h, this is bound to fail
 
@@ -509,13 +509,6 @@ foreach decl : ['char16_t',
         conf.set10('HAVE_' + decl.underscorify().to_upper(), have)
 endforeach
 
-conf.set10('HAVE_STRUCT_STATX_IN_SYS_STAT_H', cc.sizeof('struct statx', prefix : '''
-#include <sys/stat.h>
-''', args : '-D_GNU_SOURCE') > 0)
-conf.set10('HAVE_STRUCT_STATX_IN_LINUX_STAT_H', cc.sizeof('struct statx', prefix : '''
-#include <linux/stat.h>
-''', args : '-D_GNU_SOURCE') > 0)
-
 foreach decl : [['IFLA_INET6_ADDR_GEN_MODE',         'linux/if_link.h'],
                 ['IN6_ADDR_GEN_MODE_STABLE_PRIVACY', 'linux/if_link.h'],
                 ['IFLA_VRF_TABLE',                   'linux/if_link.h'],
index 9be48eef888e66755d5911dbfacb6e2ad2f79e82..fb1478548e60dc1d686479abb17feb9bab1d920d 100644 (file)
@@ -1371,7 +1371,7 @@ struct fib_rule_uid_range {
 #define PF_KTHREAD 0x00200000
 #endif
 
-#if !HAVE_STRUCT_STATX_IN_SYS_STAT_H && !HAVE_STRUCT_STATX_IN_LINUX_STAT_H
+#if ! HAVE_STRUCT_STATX
 struct statx_timestamp {
         int64_t tv_sec;
         uint32_t tv_nsec;