diff options
author | Guillem Jover <guillem@debian.org> | 2018-01-13 02:35:24 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-01-16 10:54:23 +0100 |
commit | bae5051ec6219be508b46bab785cddf1f04904f0 (patch) | |
tree | 167a1ad4d381900f94a75c93b4f97d9ecef5e41c /lib | |
parent | 52564e68c64a3e39e0e50ea1ec06ac66eaab5ef3 (diff) | |
download | dpkg-bae5051ec6219be508b46bab785cddf1f04904f0.tar.gz |
libdpkg: Include <sys/sysmacros.h> for makedev()
The glibc implementation provides this macro in <sys/sysmacros.h> and
optionally the BSD variants in <sys/types.h>, although the latter are
being deprecated and emit a warning with newer glibc. Conditionally
include <sys/sysmacros.h> to prepare for the future removal from glibc.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dpkg/tarfn.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/dpkg/tarfn.c b/lib/dpkg/tarfn.c index 27952f926..3ad531555 100644 --- a/lib/dpkg/tarfn.c +++ b/lib/dpkg/tarfn.c @@ -22,6 +22,9 @@ #include <config.h> #include <compat.h> +#if HAVE_SYS_SYSMACROS_H +#include <sys/sysmacros.h> +#endif #include <sys/stat.h> #include <errno.h> |