Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 662776
Collapse All | Expand All

(-)a/meson.build (-6 / +14 lines)
Lines 421-431 decl_headers = ''' Link Here
421
#include <uchar.h>
421
#include <uchar.h>
422
#include <linux/ethtool.h>
422
#include <linux/ethtool.h>
423
#include <linux/fib_rules.h>
423
#include <linux/fib_rules.h>
424
#include <linux/stat.h>
425
#include <sys/stat.h>
424
#include <sys/stat.h>
426
'''
425
'''
427
# FIXME: key_serial_t is only defined in keyutils.h, this is bound to fail
426
# FIXME: key_serial_t is only defined in keyutils.h, this is bound to fail
428
# FIXME: these should use -D_GNU_SOURCE, since that is defined at build time
429
427
430
foreach decl : ['char16_t',
428
foreach decl : ['char16_t',
431
                'char32_t',
429
                'char32_t',
Lines 436-448 foreach decl : ['char16_t', Link Here
436
               ]
434
               ]
437
435
438
        # We get -1 if the size cannot be determined
436
        # We get -1 if the size cannot be determined
439
        have = cc.sizeof(decl, prefix : decl_headers) > 0
437
        have = cc.sizeof(decl, prefix : decl_headers, args : '-D_GNU_SOURCE') > 0
438
439
        if decl == 'struct statx'
440
                if have
441
                        want_linux_stat_h = false
442
                else
443
                        have = cc.sizeof(decl,
444
                                         prefix : decl_headers + '#include <linux/stat.h>',
445
                                         args : '-D_GNU_SOURCE') > 0
446
                        want_linux_stat_h = have
447
                endif
448
        endif
449
440
        conf.set10('HAVE_' + decl.underscorify().to_upper(), have)
450
        conf.set10('HAVE_' + decl.underscorify().to_upper(), have)
441
endforeach
451
endforeach
442
452
443
conf.set10('HAVE_STRUCT_STATX_IN_SYS_STAT_H', cc.sizeof('struct statx', prefix : '''
453
conf.set10('WANT_LINUX_STAT_H', want_linux_stat_h)
444
#include <sys/stat.h>
445
''', args : '-D_GNU_SOURCE') > 0)
446
454
447
foreach decl : [['IFLA_INET6_ADDR_GEN_MODE',         'linux/if_link.h'],
455
foreach decl : [['IFLA_INET6_ADDR_GEN_MODE',         'linux/if_link.h'],
448
                ['IN6_ADDR_GEN_MODE_STABLE_PRIVACY', 'linux/if_link.h'],
456
                ['IN6_ADDR_GEN_MODE_STABLE_PRIVACY', 'linux/if_link.h'],
(-)a/src/basic/missing.h (-2 / +1 lines)
Lines 24-30 Link Here
24
#include <uchar.h>
24
#include <uchar.h>
25
#include <unistd.h>
25
#include <unistd.h>
26
26
27
#if !HAVE_STRUCT_STATX_IN_SYS_STAT_H
27
#if WANT_LINUX_STAT_H
28
#include <linux/stat.h>
28
#include <linux/stat.h>
29
#endif
29
#endif
30
30
31
- 

Return to bug 662776