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

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=37076082e056e45f31466f1e6e707d8a945dffa2

commit 37076082e056e45f31466f1e6e707d8a945dffa2
Author: Guillem Jover <[email protected]>
AuthorDate: Mon Oct 30 02:51:47 2023 +0100

    test: Include <sys/mkdev.h> on Solaris for major() and minor()
    
    Changelog: porting
---
 configure.ac              | 1 +
 lib/dpkg/t/c-tarextract.c | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index 98e6ab38a..4d1432d94 100644
--- a/configure.ac
+++ b/configure.ac
@@ -126,6 +126,7 @@ AC_CHECK_HEADERS([\
   sys/param.h \
   sys/syscall.h \
   sys/user.h \
+  sys/mkdev.h \
   sys/procfs.h \
   sys/pstat.h \
   linux/fiemap.h \
diff --git a/lib/dpkg/t/c-tarextract.c b/lib/dpkg/t/c-tarextract.c
index 3f3a3585a..82a8dab2a 100644
--- a/lib/dpkg/t/c-tarextract.c
+++ b/lib/dpkg/t/c-tarextract.c
@@ -25,6 +25,9 @@
 #if HAVE_SYS_SYSMACROS_H
 #include <sys/sysmacros.h> /* Needed on AIX for major()/minor(). */
 #endif
+#if HAVE_SYS_MKDEV_H
+#include <sys/mkdev.h> /* Needed on Solaris for major()/minor(). */
+#endif
 
 #include <fcntl.h>
 #include <stdint.h>

-- 
Dpkg.Org's dpkg

Reply via email to