summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--debian/changelog1
-rw-r--r--lib/dpkg/t/c-tarextract.c4
3 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2012f6fe1..5000b6172 100644
--- a/configure.ac
+++ b/configure.ac
@@ -98,6 +98,7 @@ AC_CHECK_HEADERS([\
locale.h \
libintl.h \
kvm.h \
+ sys/sysmacros.h \
sys/param.h \
sys/sysctl.h \
sys/syscall.h \
diff --git a/debian/changelog b/debian/changelog
index 977d364fa..d2d6da581 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -56,6 +56,7 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
- Use our own dpkg_ar_hdr struct instead of relying on the system
ar_hdr struct, as the ar format is not standardized and does vary
across systems, for example on AIX.
+ - Add <sys/sysmacros.h> on AIX for major() and minor().
* Perl modules:
- Obsolete Source-Version substvar in Dpkg::Substvars by emitting errors.
- Rework keyring hooks in Dpkg::Vendor. Deprecate the keyrings hook, and
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>