[dpkg] 191/200: s-s-d: Define _KMEMUSER for NetBSD

Ximin Luo infinity0 at debian.org
Wed Apr 5 15:17:39 UTC 2017


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

infinity0 pushed a commit to branch master
in repository dpkg.

commit 414903639c5c23ec4e346a011feea2deb7565be0
Author: Guillem Jover <guillem at debian.org>
Date:   Sat Feb 11 22:40:20 2017 +0100

    s-s-d: Define _KMEMUSER for NetBSD
    
    We need to define this macro to be able to get the declarations for the
    struct proc and other struct kproc_info members.
---
 debian/changelog          | 2 ++
 utils/start-stop-daemon.c | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 05f96af..7602352 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,8 @@ dpkg (1.18.23) UNRELEASED; urgency=medium
     - Use 5-argument kvm_getprocs() call form on OpenBSD in start-stop-daemon.
     - Use correct struct kinfo_proc ruid submember name on NetBSD in
       start-stop-daemon.
+    - Define _KMEMUSER for NetBSD to get declarations for various
+      struct kinfo_proc members in start-stop-daemon.
   * Perl modules:
     - Do not special case EM_SPARC32PLUS for NetBSD in Dpkg::Shlibs::Objdump,
       the code has been fixed in NetBSD as that situation could not happen.
diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c
index ca18421..3931f5c 100644
--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -49,6 +49,9 @@
 #  error Unknown architecture - cannot build start-stop-daemon
 #endif
 
+/* NetBSD needs this to expose struct proc. */
+#define _KMEMUSER 1
+
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif

-- 
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