mirror of
git://git.suckless.org/sbase
synced 2024-12-21 22:50:16 +00:00
ls, tar: Guard inclusion of sys/sysmacros.h by absence of major
definition
Since musl 1.1.23, it too does not provide `major` and `minor` through sys/types.h, so instead include sys/sysmacros.h based on the absence of `major` rather than only on glibc. Thanks to Rich Felker for the suggestion.
This commit is contained in:
parent
7315b8686f
commit
39f92650d3
2
ls.c
2
ls.c
@ -1,7 +1,7 @@
|
||||
/* See LICENSE file for copyright and license details. */
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef __GLIBC__
|
||||
#ifndef major
|
||||
#include <sys/sysmacros.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user