mirror of git://git.suckless.org/ubase
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
This commit is contained in:
parent
3c88778c6c
commit
a015607af0
|
@ -1,4 +1,5 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
|
|
1
mknod.c
1
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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue