diff --git a/src/region.h b/src/region.h index e132389..510516f 100644 --- a/src/region.h +++ b/src/region.h @@ -9,7 +9,10 @@ #include #include -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0) +// Newer versions of musl have UAPI headers +// that redefine struct sysinfo +#if defined(__GLIBC__) || defined(__UCLIBC__) \ + || LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0) #include #else #include diff --git a/src/server.h b/src/server.h index 96ad2a7..f6de5f7 100644 --- a/src/server.h +++ b/src/server.h @@ -15,7 +15,10 @@ #include #include -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0) +// Newer versions of musl have UAPI headers +// that redefine struct sysinfo +#if defined(__GLIBC__) || defined(__UCLIBC__) \ + || LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0) #include #else #include