Skip to content

Commit ce55a85

Browse files
LaszloGombosjohannbg
authored andcommitted
fix(install): restore musl support
__GLIBC_PREREQ is only defined in glibc.
1 parent 8fd37d2 commit ce55a85

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/install/util.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,15 @@
2424
#include <errno.h>
2525
#include <fcntl.h>
2626
#include <sys/types.h>
27+
#include <sys/syscall.h>
2728

2829
#include "util.h"
2930

30-
#if __GLIBC_PREREQ(2, 30) == 0
31-
#include <sys/syscall.h>
3231
#ifndef SYS_gettid
3332
#error "SYS_gettid unavailable on this system"
3433
#endif
3534

3635
#define gettid() ((pid_t) syscall(SYS_gettid))
37-
#endif /*__GLIBC_PREREQ */
3836

3937
size_t page_size(void)
4038
{

0 commit comments

Comments
 (0)