g13: Fix for Solaris.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 20 Apr 2017 11:43:29 +0000 (20:43 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 20 Apr 2017 11:43:29 +0000 (20:43 +0900)
* configure.ac: Check sys/mkdev.h.
* g13/sh-dmcrypt.c: Include sys/mkdev.h.

--

GnuPG-bug-id: 3098
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
configure.ac
g13/sh-dmcrypt.c

index 4c90d6c..494e444 100644 (file)
@@ -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 sys/sysmacros.h])
+                  ucred.h sys/sysmacros.h sys/mkdev.h])
 
 AC_HEADER_TIME
 
index c5489c9..09c4d96 100644 (file)
@@ -25,6 +25,9 @@
 #include <errno.h>
 #include <assert.h>
 #include <sys/types.h>
+#ifdef HAVE_SYS_MKDEV_H
+#include <sys/mkdev.h>
+#endif
 #ifdef HAVE_SYS_SYSMACROS_H
 # include <sys/sysmacros.h>
 #endif