From: Marc Andre Tanner Date: Sat, 29 Dec 2007 18:13:21 +0000 (+0100) Subject: Fix compilation on Free and OpenBSD. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=05d69048eb7e641221e29df9405741c4bc7dfd59;p=apps%2Fmadtty.git Fix compilation on Free and OpenBSD. Signed-off-by: Marc Andre Tanner --- diff --git a/madtty/madtty.c b/madtty/madtty.c index af12870..95ea5e2 100644 --- a/madtty/madtty.c +++ b/madtty/madtty.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include @@ -33,9 +32,19 @@ #include #include #include - +#ifdef __linux__ +# include +#elif defined(__FreeBSD__) +# include +#elif defined(__OpenBSD__) +# include +#endif #include "madtty.h" +#ifndef NCURSES_ATTR_SHIFT +# define NCURSES_ATTR_SHIFT 8 +#endif + #define IS_CONTROL(ch) !((ch) & 0xffffff60UL) static int has_default = 0;