diff --git a/mflow.c b/mflow.c index 9bed19d..5ba925e 100644 --- a/mflow.c +++ b/mflow.c @@ -1,3 +1,7 @@ +#ifdef __sun +#define __EXTENSIONS__ /* to get TIOCGWINSZ */ +#endif + #include #include @@ -9,6 +13,7 @@ #include #include #include +#include #include "blaze822.h" #include "xpledge.h" diff --git a/mscan.c b/mscan.c index 52ba9a4..0494409 100644 --- a/mscan.c +++ b/mscan.c @@ -1,6 +1,9 @@ #ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 700 #endif +#ifdef __sun +#define __EXTENSIONS__ /* to get TIOCGWINSZ */ +#endif #include "xpledge.h" @@ -19,6 +22,7 @@ #include #include #include +#include #include "blaze822.h" #include "u8decode.h"