diff options
| author | Dan Nicolaescu | 2010-10-04 10:22:57 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-10-04 10:22:57 -0700 |
| commit | 3e6ae1a4ae2f54ad70a528ee3d4fac992b964eaa (patch) | |
| tree | 13597dfdaff9729ca7cbf0165c0c166c6a31a36c /src/termcap.c | |
| parent | 8028ed5c1cf7a67264689790a6f7160e86160486 (diff) | |
| download | emacs-3e6ae1a4ae2f54ad70a528ee3d4fac992b964eaa.tar.gz emacs-3e6ae1a4ae2f54ad70a528ee3d4fac992b964eaa.zip | |
Remove O_RDONLY, O_WRONLY definitions, not needed.
* src/unexcoff.c:
* src/lread.c:
* src/fileio.c:
* src/doc.c:
* src/callproc.c:
* src/alloc.c:
* src/termcap.c: Remove O_RDONLY O_WRONLY definitions.
Diffstat (limited to 'src/termcap.c')
| -rw-r--r-- | src/termcap.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/termcap.c b/src/termcap.c index a8eabf25529..03476b15761 100644 --- a/src/termcap.c +++ b/src/termcap.c | |||
| @@ -20,22 +20,18 @@ Boston, MA 02110-1301, USA. */ | |||
| 20 | /* Emacs config.h may rename various library functions such as malloc. */ | 20 | /* Emacs config.h may rename various library functions such as malloc. */ |
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <setjmp.h> | 22 | #include <setjmp.h> |
| 23 | #include <lisp.h> /* xmalloc is here */ | ||
| 24 | /* Get the O_* definitions for open et al. */ | ||
| 25 | #include <sys/file.h> | 23 | #include <sys/file.h> |
| 26 | #include <fcntl.h> | 24 | #include <fcntl.h> |
| 27 | #ifdef HAVE_UNISTD_H | 25 | #ifdef HAVE_UNISTD_H |
| 28 | #include <unistd.h> | 26 | #include <unistd.h> |
| 29 | #endif | 27 | #endif |
| 30 | 28 | ||
| 29 | #include "lisp.h" | ||
| 30 | |||
| 31 | #ifndef NULL | 31 | #ifndef NULL |
| 32 | #define NULL (char *) 0 | 32 | #define NULL (char *) 0 |
| 33 | #endif | 33 | #endif |
| 34 | 34 | ||
| 35 | #ifndef O_RDONLY | ||
| 36 | #define O_RDONLY 0 | ||
| 37 | #endif | ||
| 38 | |||
| 39 | /* BUFSIZE is the initial size allocated for the buffer | 35 | /* BUFSIZE is the initial size allocated for the buffer |
| 40 | for reading the termcap file. | 36 | for reading the termcap file. |
| 41 | It is not a limit. | 37 | It is not a limit. |