From: Michael Forney Date: Thu, 3 Oct 2013 09:39:17 +0000 (-0700) Subject: include: Add missing includes X-Git-Tag: v2.24-rc2~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00c505d9cfedc02752d64bd61cf83d293b061c8d;p=thirdparty%2Futil-linux.git include: Add missing includes sys/types.h: For u_char typedef sys/params.h: For MAXNAMLEN sys/ttydefaults.h: For various tty definitions (also add configure check) Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index 95ff8b3d26..12d0babf7f 100644 --- a/configure.ac +++ b/configure.ac @@ -204,6 +204,7 @@ AC_CHECK_HEADERS([ \ sys/swap.h \ sys/syscall.h \ sys/time.h \ + sys/ttydefaults.h \ sys/types.h \ sys/un.h \ unistd.h \ diff --git a/include/ttyutils.h b/include/ttyutils.h index 13495ba968..4f2fd88486 100644 --- a/include/ttyutils.h +++ b/include/ttyutils.h @@ -13,6 +13,9 @@ #ifdef HAVE_SYS_IOCTL_H #include #endif +#ifdef HAVE_SYS_TTYDEFAULTS_H +#include +#endif /* Some shorthands for control characters. */ #define CTL(x) ((x) ^ 0100) /* Assumes ASCII dialect */ diff --git a/term-utils/ttymsg.c b/term-utils/ttymsg.c index d6108266d2..8bf993c2fa 100644 --- a/term-utils/ttymsg.c +++ b/term-utils/ttymsg.c @@ -41,6 +41,7 @@ */ #include +#include #include #include #include diff --git a/text-utils/display.c b/text-utils/display.c index 1f9a11b4c9..11303667ed 100644 --- a/text-utils/display.c +++ b/text-utils/display.c @@ -33,6 +33,7 @@ #include #include +#include #include #include #include