Skip to content

Commit

Permalink
fix(install): restore musl support
Browse files Browse the repository at this point in the history
__GLIBC_PREREQ is only defined in glibc.
  • Loading branch information
LaszloGombos authored and johannbg committed Mar 1, 2022
1 parent 8fd37d2 commit ce55a85
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/install/util.c
Expand Up @@ -24,17 +24,15 @@
#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)
{
Expand Down

0 comments on commit ce55a85

Please sign in to comment.