From c3cc9551dcc89cc25c0a0ec16d8eb12c1c221638 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 11 Apr 2017 19:59:07 +0900 Subject: 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 --- configure.ac | 2 +- g13/sh-dmcrypt.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 #include #include +#ifdef HAVE_SYS_SYSMACROS_H +# include +#endif #ifdef HAVE_STAT # include #endif -- cgit v1.2.3