diff --git a/estruct.h b/estruct.h index e064147..9105703 100644 --- a/estruct.h +++ b/estruct.h @@ -682,9 +682,3 @@ typedef struct { } RMC; #endif -/* Since Mac OS X's termios.h doesn't have the following 2 macros, define them. - */ -#if defined(SYSV) && defined(_DARWIN_C_SOURCE) -#define OLCUC 0000002 -#define XCASE 0000004 -#endif diff --git a/posix.c b/posix.c index dbc6486..fc96bc0 100644 --- a/posix.c +++ b/posix.c @@ -1,8 +1,8 @@ -/* POSIX.C +/* posix.c * - * The functions in this file negotiate with the operating system for - * characters, and write characters in a barely buffered fashion on the display. - * All operating systems. + * The functions in this file negotiate with the operating system for + * characters, and write characters in a barely buffered fashion on the + * display. All operating systems. * * modified by Petri Kutvonen * @@ -12,16 +12,23 @@ #ifdef POSIX +#include +#include +#include #include +#include #include + #include "estruct.h" #include "edef.h" #include "efunc.h" -#include -#include -#include -#include +/* Since Mac OS X's termios.h doesn't have the following 2 macros, define them. + */ +#if defined(SYSV) && defined(_DARWIN_C_SOURCE) +#define OLCUC 0000002 +#define XCASE 0000004 +#endif /* * NOTE NOTE NOTE!