Explicitly include sys/sysmacros.h for makedev etc - ubase - suckless linux base utils
  HTML git clone git://git.suckless.org/ubase
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit a015607af0075badc0cd90523c43f391daa0572d
   DIR parent 3c88778c6c85d97fb63c41c05304519e0484b07c
  HTML Author: Markus Rudy <webmaster@burgerdev.de>
       Date:   Fri, 22 Sep 2023 10:06:21 +0200
       
       Explicitly include sys/sysmacros.h for makedev etc
       
       This header used to be included by sys/types.h in glibc, and musl
       adopted the behaviour. However, this dependency was never desired, so
       glibc deprecated it in 2016 and finally removed it in 2019, and so did
       musl. Explicitly including the header should be a no-op on older libc
       versions and fixes the build on newer versions.
       
       https://sourceware.org/bugzilla/show_bug.cgi?id=19239
       https://git.musl-libc.org/cgit/musl/commit/?id=f552c79
       
       Diffstat:
         M libutil/tty.c                       |       1 +
         M mknod.c                             |       1 +
         M mountpoint.c                        |       1 +
         M stat.c                              |       1 +
       
       4 files changed, 4 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/libutil/tty.c b/libutil/tty.c
       @@ -1,4 +1,5 @@
        /* See LICENSE file for copyright and license details. */
       +#include <sys/sysmacros.h>
        #include <sys/types.h>
        #include <sys/stat.h>
        
   DIR diff --git a/mknod.c b/mknod.c
       @@ -1,5 +1,6 @@
        /* See LICENSE file for copyright and license details. */
        #include <sys/stat.h>
       +#include <sys/sysmacros.h>
        #include <sys/types.h>
        
        #include <fcntl.h>
   DIR diff --git a/mountpoint.c b/mountpoint.c
       @@ -1,5 +1,6 @@
        /* See LICENSE file for copyright and license details. */
        #include <sys/stat.h>
       +#include <sys/sysmacros.h>
        #include <sys/types.h>
        
        #include <mntent.h>
   DIR diff --git a/stat.c b/stat.c
       @@ -1,5 +1,6 @@
        /* See LICENSE file for copyright and license details. */
        #include <sys/stat.h>
       +#include <sys/sysmacros.h>
        #include <sys/types.h>
        
        #include <inttypes.h>