aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2017-04-11 10:59:07 +0000
committerNIIBE Yutaka <[email protected]>2017-04-11 10:59:07 +0000
commitc3cc9551dcc89cc25c0a0ec16d8eb12c1c221638 (patch)
treea9da8dd04787ac4529d93c7bb69c3ff915132e55
parenttests: Fix distcheck. (diff)
downloadgnupg-c3cc9551dcc89cc25c0a0ec16d8eb12c1c221638.tar.gz
gnupg-c3cc9551dcc89cc25c0a0ec16d8eb12c1c221638.zip
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 <[email protected]>
-rw-r--r--configure.ac2
-rw-r--r--g13/sh-dmcrypt.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f58708c3f..4c90d6c48 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 f7ec79758..c5489c96f 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