#ifdef __hpux #define _BOOL_DEFINED #ifndef _XOPEN_SOURCE_EXTENDED #include #define _XOPEN_SOURCE_EXTENDED #include #include #undef _XOPEN_SOURCE_EXTENDED #else #include #include #endif #else /* __hpux */ #include #include #endif /* __hpux */ #ifndef getmaxyx #define getmaxyx(w,y,x) ((y) = getmaxy(w), (x) = getmaxx(w)) #endif