mirror of
https://github.com/rfivet/uemacs.git
synced 2025-01-11 10:46:59 -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:
parent
dff382de1d
commit
a1891f8efc
@ -682,9 +682,3 @@ typedef struct {
|
|||||||
} RMC;
|
} RMC;
|
||||||
#endif
|
#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
|
|
||||||
|
21
posix.c
21
posix.c
@ -1,8 +1,8 @@
|
|||||||
/* POSIX.C
|
/* posix.c
|
||||||
*
|
*
|
||||||
* The functions in this file negotiate with the operating system for
|
* The functions in this file negotiate with the operating system for
|
||||||
* characters, and write characters in a barely buffered fashion on the display.
|
* characters, and write characters in a barely buffered fashion on the
|
||||||
* All operating systems.
|
* display. All operating systems.
|
||||||
*
|
*
|
||||||
* modified by Petri Kutvonen
|
* modified by Petri Kutvonen
|
||||||
*
|
*
|
||||||
@ -12,16 +12,23 @@
|
|||||||
|
|
||||||
#ifdef POSIX
|
#ifdef POSIX
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <termios.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "estruct.h"
|
#include "estruct.h"
|
||||||
#include "edef.h"
|
#include "edef.h"
|
||||||
#include "efunc.h"
|
#include "efunc.h"
|
||||||
|
|
||||||
#include <signal.h>
|
/* Since Mac OS X's termios.h doesn't have the following 2 macros, define them.
|
||||||
#include <termios.h>
|
*/
|
||||||
#include <fcntl.h>
|
#if defined(SYSV) && defined(_DARWIN_C_SOURCE)
|
||||||
#include <errno.h>
|
#define OLCUC 0000002
|
||||||
|
#define XCASE 0000004
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* NOTE NOTE NOTE!
|
* NOTE NOTE NOTE!
|
||||||
|
Loading…
Reference in New Issue
Block a user