summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-08-28 16:50:22 +0200
committerGuillem Jover <guillem@debian.org>2016-10-30 05:43:49 +0100
commit1d4e37d00e0aa8bd8b11bb034eb45812f3ec8ca5 (patch)
tree59866ff5a4758c108788a25587243a5cde16bb13 /lib
parent534510ae79d96691ba31d08b52c1158455a9621f (diff)
downloaddpkg-1d4e37d00e0aa8bd8b11bb034eb45812f3ec8ca5.tar.gz
libdpkg: Add <sys/sysmacros.h> on AIX for major() and minor()
Diffstat (limited to 'lib')
-rw-r--r--lib/dpkg/t/c-tarextract.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/dpkg/t/c-tarextract.c b/lib/dpkg/t/c-tarextract.c
index c235f4472..405556558 100644
--- a/lib/dpkg/t/c-tarextract.c
+++ b/lib/dpkg/t/c-tarextract.c
@@ -22,6 +22,10 @@
#include <compat.h>
#include <sys/types.h>
+#if HAVE_SYS_SYSMACROS_H
+#include <sys/sysmacros.h> /* Needed on AIX for major()/minor(). */
+#endif
+
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>