[dpkg] 112/187: libdpkg: Add <sys/sysmacros.h> on AIX for major() and minor()

Reiner Herrmann reiner at reiner-h.de
Sun Nov 6 12:46:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

deki-guest pushed a commit to branch master
in repository dpkg.

commit 1d4e37d00e0aa8bd8b11bb034eb45812f3ec8ca5
Author: Guillem Jover <guillem at debian.org>
Date:   Sun Aug 28 16:50:22 2016 +0200

    libdpkg: Add <sys/sysmacros.h> on AIX for major() and minor()
---
 configure.ac              | 1 +
 debian/changelog          | 1 +
 lib/dpkg/t/c-tarextract.c | 4 ++++
 3 files changed, 6 insertions(+)

diff --git a/configure.ac b/configure.ac
index 2012f6f..5000b61 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 977d364..d2d6da5 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 c235f44..4055565 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>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list