]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(install): restore musl support
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 21 Feb 2022 03:23:49 +0000 (22:23 -0500)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Tue, 1 Mar 2022 22:25:53 +0000 (22:25 +0000)
__GLIBC_PREREQ is only defined in glibc.

src/install/util.c

index 5721de89ea68444f4e48b69443e0dcd7519cc055..0af387c27707d11de454f24f364f7d4a200f3c2e 100644 (file)
 #include <errno.h>
 #include <fcntl.h>
 #include <sys/types.h>
+#include <sys/syscall.h>
 
 #include "util.h"
 
-#if __GLIBC_PREREQ(2, 30) == 0
-#include <sys/syscall.h>
 #ifndef SYS_gettid
 #error "SYS_gettid unavailable on this system"
 #endif
 
 #define gettid()    ((pid_t) syscall(SYS_gettid))
-#endif /*__GLIBC_PREREQ */
 
 size_t page_size(void)
 {