diff options
author | Thiago Farina <tfransosi@gmail.com> | 2010-11-28 20:09:55 -0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-11-28 14:16:57 -0800 |
commit | a1891f8efcfdd78dc2f0494f8abad2dc366b6f29 (patch) | |
tree | 2f28ae0e7ff362c57852915e0b05cea7c34bc986 | |
parent | dff382de1d39be7bf41d1fd1fb5e7bbf15023888 (diff) | |
download | uemacs-a1891f8efcfdd78dc2f0494f8abad2dc366b6f29.tar.gz |
uemacs: Move some constants from estruct.h to posix.c
These two constants are only needed/used by the posix.c file,
so just define them there.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | estruct.h | 6 | ||||
-rw-r--r-- | posix.c | 23 |
2 files changed, 15 insertions, 14 deletions
@@ -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 @@ -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 <errno.h> +#include <fcntl.h> +#include <signal.h> #include <stdio.h> +#include <termios.h> #include <unistd.h> + #include "estruct.h" #include "edef.h" #include "efunc.h" -#include <signal.h> -#include <termios.h> -#include <fcntl.h> -#include <errno.h> +/* 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! |