is standard as per SUSv2 already: http://pubs.opengroup.org/onlinepubs/007908799/xsh/termios.h.html AIX does not provide at all, Linux, Solaris, HP-UX, Darwin and Interix have both, redirecting one to the other. --- src/start-stop-daemon.c.orig 2011-03-28 13:55:36 +0200 +++ src/start-stop-daemon.c 2011-03-28 14:50:47 +0200 @@ -37,6 +37,9 @@ #define NONRETURNING \ __attribute__((noreturn)) +#define HAVE_TERMIOS_H +#undef HAVE_SYS_TERMIOS_H + #if defined(linux) || (defined(__FreeBSD_kernel__) && defined(__GLIBC__)) # define OSLinux #elif defined(__GNU__) @@ -97,7 +123,11 @@ #include #include #include -#include +#if defined(HAVE_TERMIOS_H) +# include +#elif defined(HAVE_SYS_TERMIOS_H) +# include +#endif #include #include #include