1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-19 07:46:24 -05:00

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>
This commit is contained in:
Thiago Farina 2010-11-28 20:09:55 -02:00 committed by Linus Torvalds
parent dff382de1d
commit a1891f8efc
2 changed files with 15 additions and 14 deletions

View File

@ -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

23
posix.c
View File

@ -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!