[Pkg-gnupg-commit] [gnupg2] 52/132: g13: Include sys/sysmacros.h if available.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed May 17 03:07:41 UTC 2017


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

dkg pushed a commit to branch experimental
in repository gnupg2.

commit c3cc9551dcc89cc25c0a0ec16d8eb12c1c221638
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Tue Apr 11 19:59:07 2017 +0900

    g13: Include sys/sysmacros.h if available.
    
    * configure.ac: Add test for sys/sysmacros.h.
    * g13/sh-dmcrypt.c: Include sys/sysmacros.h.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
 configure.ac     | 2 +-
 g13/sh-dmcrypt.c | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index f58708c..4c90d6c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1278,7 +1278,7 @@ AC_HEADER_STDC
 AC_CHECK_HEADERS([string.h unistd.h langinfo.h termio.h locale.h getopt.h \
                   pty.h utmp.h pwd.h inttypes.h signal.h sys/select.h     \
                   stdint.h signal.h util.h libutil.h termios.h \
-                  ucred.h])
+                  ucred.h sys/sysmacros.h])
 
 AC_HEADER_TIME
 
diff --git a/g13/sh-dmcrypt.c b/g13/sh-dmcrypt.c
index f7ec797..c5489c9 100644
--- a/g13/sh-dmcrypt.c
+++ b/g13/sh-dmcrypt.c
@@ -25,6 +25,9 @@
 #include <errno.h>
 #include <assert.h>
 #include <sys/types.h>
+#ifdef HAVE_SYS_SYSMACROS_H
+# include <sys/sysmacros.h>
+#endif
 #ifdef HAVE_STAT
 # include <sys/stat.h>
 #endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list