Skip to content

Commit

Permalink
Deal with glibc-2.28
Browse files Browse the repository at this point in the history
Closes: #74
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
  • Loading branch information
cwilling authored and Yamakuzure committed Sep 25, 2018
1 parent c8a0f0c commit f340b00
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions meson.build
Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion src/basic/missing.h
Expand Up @@ -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;
Expand Down

0 comments on commit f340b00

Please sign in to comment.