From b08ff2e071de6c6b2165aca8337af166586c3322 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Sun, 2 Sep 2018 20:46:19 -0500 Subject: elogind-238.1.0-2.1: rebuild --- pcr/elogind/elogind-struct-statx-is-defined.patch | 50 +++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pcr/elogind/elogind-struct-statx-is-defined.patch (limited to 'pcr/elogind/elogind-struct-statx-is-defined.patch') diff --git a/pcr/elogind/elogind-struct-statx-is-defined.patch b/pcr/elogind/elogind-struct-statx-is-defined.patch new file mode 100644 index 000000000..f89297299 --- /dev/null +++ b/pcr/elogind/elogind-struct-statx-is-defined.patch @@ -0,0 +1,50 @@ +--- a/meson.build 2018-08-29 14:57:20.688786000 -0500 ++++ b/meson.build 2018-09-02 18:00:32.490563287 -0500 +@@ -535,7 +535,7 @@ + #include + #include + //#include +-//#include ++#include + ''' + # FIXME: key_serial_t is only defined in keyutils.h, this is bound to fail + +@@ -548,10 +548,24 @@ + ] + + # We get -1 if the size cannot be determined +- have = cc.sizeof(decl, prefix : decl_headers) > 0 ++ have = cc.sizeof(decl, prefix : decl_headers, args : '-D_GNU_SOURCE') > 0 ++ ++ if decl == 'struct statx' ++ if have ++ want_linux_stat_h = false ++ else ++ have = cc.sizeof(decl, ++ prefix : decl_headers + '#include ', ++ args : '-D_GNU_SOURCE') > 0 ++ want_linux_stat_h = have ++ endif ++ endif ++ + conf.set10('HAVE_' + decl.underscorify().to_upper(), have) + endforeach + ++conf.set10('WANT_LINUX_STAT_H', want_linux_stat_h) ++ + 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'], +--- a/src/basic/missing.h 2018-08-29 14:57:20.705452000 -0500 ++++ b/src/basic/missing.h 2018-09-02 19:05:17.264515940 -0500 +@@ -44,6 +44,10 @@ + #include + #include + ++#if WANT_LINUX_STAT_H ++#include ++#endif ++ + /// Additional includes needed by elogind + #include "musl_missing.h" + -- cgit v1.2.3