chiark / gitweb /
Deal with glibc-2.28
authorChristoph Willing <chris.willing@linux.com>
Mon, 24 Sep 2018 22:39:53 +0000 (08:39 +1000)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Sep 2018 14:29:13 +0000 (16:29 +0200)
Closes: https://github.com/elogind/elogind/issues/74
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
meson.build
src/basic/missing.h

index 3e97f57f3950c7a85e6fcff4b19445f185dacfd6..0d096d84752d4f272cb41f5703e85e822b0f90d1 100644 (file)
@@ -509,6 +509,13 @@ 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 fb1478548e60dc1d686479abb17feb9bab1d920d..9be48eef888e66755d5911dbfacb6e2ad2f79e82 100644 (file)
@@ -1371,7 +1371,7 @@ struct fib_rule_uid_range {
 #define PF_KTHREAD 0x00200000
 #endif
 
-#if ! HAVE_STRUCT_STATX
+#if !HAVE_STRUCT_STATX_IN_SYS_STAT_H && !HAVE_STRUCT_STATX_IN_LINUX_STAT_H
 struct statx_timestamp {
         int64_t tv_sec;
         uint32_t tv_nsec;