summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2018-01-13 02:35:24 +0100
committerGuillem Jover <guillem@debian.org>2018-01-16 10:54:23 +0100
commitbae5051ec6219be508b46bab785cddf1f04904f0 (patch)
tree167a1ad4d381900f94a75c93b4f97d9ecef5e41c /lib
parent52564e68c64a3e39e0e50ea1ec06ac66eaab5ef3 (diff)
downloaddpkg-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.c3
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>