1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00

Include <fcntl.h> unconditionally.

* src/termcap.c:
* src/sysdep.c:
* src/lread.c:
* src/keyboard.c:
* src/filelock.c:
* src/fileio.c:
* src/doc.c:
* src/callproc.c:
* src/alloc.c: Remove include guards for <fcntl.h>, process.c already
does it.
This commit is contained in:
Dan Nicolaescu 2010-10-03 08:19:34 -07:00
parent 3725594541
commit a3d5088daa
10 changed files with 12 additions and 25 deletions

View File

@ -1,5 +1,17 @@
2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
Include <fcntl.h> unconditionally.
* termcap.c:
* sysdep.c:
* lread.c:
* keyboard.c:
* filelock.c:
* fileio.c:
* doc.c:
* callproc.c:
* alloc.c: Remove include guards for <fcntl.h>, process.c already
does it.
* process.c: Do not include <sys/wait.h>, syswait.h does it.
* sysdep.c (flush_pending_output): Remove code, does not do

View File

@ -65,15 +65,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
extern POINTER_TYPE *sbrk ();
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifndef O_WRONLY
#define O_WRONLY 1
#endif
#ifdef WINDOWSNT
#include <fcntl.h>
#include "w32.h"
#endif

View File

@ -31,20 +31,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#endif
#include <sys/file.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef WINDOWSNT
#define NOMINMAX
#include <windows.h>
#include <fcntl.h>
#include "w32.h"
#define _P_NOWAIT 1 /* from process.h */
#endif
#ifdef MSDOS /* Demacs 1.1.1 91/10/16 HIRANO Satoshi */
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/param.h>
#endif /* MSDOS */

View File

@ -25,10 +25,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include <sys/file.h> /* Must be after sys/types.h for USG*/
#include <ctype.h>
#include <setjmp.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>

View File

@ -20,11 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include <config.h>
#include <limits.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -31,9 +31,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#endif
#include <sys/file.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>

View File

@ -62,9 +62,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include <unistd.h>
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
/* This is to get the definitions of the XK_ symbols. */
#ifdef HAVE_X_WINDOWS

View File

@ -54,9 +54,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include <locale.h>
#endif /* HAVE_SETLOCALE */
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifndef O_RDONLY
#define O_RDONLY 0
#endif

View File

@ -71,10 +71,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#endif
#include <sys/file.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#include "systty.h"
#include "syswait.h"

View File

@ -23,9 +23,7 @@ Boston, MA 02110-1301, USA. */
#include <lisp.h> /* xmalloc is here */
/* Get the O_* definitions for open et al. */
#include <sys/file.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif