diff src/termcap.c @ 110758:2b72330aa98a

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.
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 04 Oct 2010 10:22:57 -0700
parents 72f46bad930c
children b9752b72e1ee
line wrap: on
line diff
--- a/src/termcap.c	Mon Oct 04 13:17:48 2010 +0000
+++ b/src/termcap.c	Mon Oct 04 10:22:57 2010 -0700
@@ -20,22 +20,18 @@
 /* Emacs config.h may rename various library functions such as malloc.  */
 #include <config.h>
 #include <setjmp.h>
-#include <lisp.h>		/* xmalloc is here */
-/* Get the O_* definitions for open et al.  */
 #include <sys/file.h>
 #include <fcntl.h>
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
 
+#include "lisp.h"
+
 #ifndef NULL
 #define NULL (char *) 0
 #endif
 
-#ifndef O_RDONLY
-#define O_RDONLY 0
-#endif
-
 /* BUFSIZE is the initial size allocated for the buffer
    for reading the termcap file.
    It is not a limit.