aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-11-28 20:09:55 -0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-11-28 14:16:57 -0800
commita1891f8efcfdd78dc2f0494f8abad2dc366b6f29 (patch)
tree2f28ae0e7ff362c57852915e0b05cea7c34bc986
parentdff382de1d39be7bf41d1fd1fb5e7bbf15023888 (diff)
downloaduemacs-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.h6
-rw-r--r--posix.c23
2 files changed, 15 insertions, 14 deletions
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 <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!