Hi, ubase won't compile with musl later than 1.1.23 because it lacks the major, minor and makedev function. Added the necessary include to make it compile.
Regards, spaceman
>From 218b9c1634eb7bf7fabdfd2df172989266ec0997 Mon Sep 17 00:00:00 2001 From: spaceman <[email protected]> Date: Sun, 5 Jan 2020 14:52:49 +0000 Subject: [PATCH] fix musl compile --- libutil/tty.c | 3 +++ mknod.c | 3 +++ mountpoint.c | 3 +++ rmmod.c | 3 +++ stat.c | 4 ++++ 5 files changed, 16 insertions(+) diff --git a/libutil/tty.c b/libutil/tty.c index bceb01e..2103946 100644 --- a/libutil/tty.c +++ b/libutil/tty.c @@ -1,6 +1,9 @@ /* See LICENSE file for copyright and license details. */ #include <sys/types.h> #include <sys/stat.h> +#ifndef major +#include <sys/sysmacros.h> +#endif #include <fcntl.h> #include <dirent.h> diff --git a/mknod.c b/mknod.c index 8de35c7..6a3697d 100644 --- a/mknod.c +++ b/mknod.c @@ -1,6 +1,9 @@ /* See LICENSE file for copyright and license details. */ #include <sys/stat.h> #include <sys/types.h> +#ifndef makedev +#include <sys/sysmacros.h> +#endif #include <fcntl.h> #include <stdio.h> diff --git a/mountpoint.c b/mountpoint.c index 8f205a2..726cc80 100644 --- a/mountpoint.c +++ b/mountpoint.c @@ -1,6 +1,9 @@ /* See LICENSE file for copyright and license details. */ #include <sys/stat.h> #include <sys/types.h> +#ifndef major +#include <sys/sysmacros.h> +#endif #include <mntent.h> #include <stdio.h> diff --git a/rmmod.c b/rmmod.c index b5ce5b7..056b648 100644 --- a/rmmod.c +++ b/rmmod.c @@ -1,5 +1,8 @@ /* See LICENSE file for copyright and license details. */ #include <sys/syscall.h> +#ifndef major +#include <sys/sysmacros.h> +#endif #include <fcntl.h> #include <libgen.h> diff --git a/stat.c b/stat.c index 220a659..59c43f2 100644 --- a/stat.c +++ b/stat.c @@ -1,6 +1,10 @@ /* See LICENSE file for copyright and license details. */ #include <sys/stat.h> #include <sys/types.h> +#ifndef major +#include <sys/sysmacros.h> +#endif + #include <inttypes.h> #include <stdio.h> -- 2.14.5
