systemd: workaround compilation failures against old glibc

Building against older libc/kernel headers can fail, because our glue
code for systemd has issues. Fix them by forward declaring "struct
statx" and by disabling parts of "socket-util.c".
This commit is contained in:
Thomas Haller
2020-10-05 22:06:01 +02:00
parent 5e83bac5aa
commit b7e08f685d
2 changed files with 6 additions and 0 deletions

View File

@@ -140,6 +140,10 @@ NM_PRAGMA_WARNING_DISABLE("-Wdeclaration-after-statement")
/*****************************************************************************/
struct statx;
/*****************************************************************************/
static inline pid_t
raw_getpid(void)
{