diff options
| author | Dan Nicolaescu | 2010-10-03 08:19:34 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-10-03 08:19:34 -0700 |
| commit | a3d5088daa2e78d9dc2d7eddc4ac9c56cfe11caa (patch) | |
| tree | fdb7783e90619a675f5bdcf2fc4471f5eacc8c01 | |
| parent | 372559454105e1691ca3507da3df5d8797b9baf8 (diff) | |
| download | emacs-a3d5088daa2e78d9dc2d7eddc4ac9c56cfe11caa.tar.gz emacs-a3d5088daa2e78d9dc2d7eddc4ac9c56cfe11caa.zip | |
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.
| -rw-r--r-- | src/ChangeLog | 12 | ||||
| -rw-r--r-- | src/alloc.c | 3 | ||||
| -rw-r--r-- | src/callproc.c | 4 | ||||
| -rw-r--r-- | src/doc.c | 3 | ||||
| -rw-r--r-- | src/fileio.c | 4 | ||||
| -rw-r--r-- | src/filelock.c | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 2 | ||||
| -rw-r--r-- | src/lread.c | 2 | ||||
| -rw-r--r-- | src/sysdep.c | 3 | ||||
| -rw-r--r-- | src/termcap.c | 2 |
10 files changed, 12 insertions, 25 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9ea2adddc65..c535c2fc64a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,17 @@ | |||
| 1 | 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | Include <fcntl.h> unconditionally. | ||
| 4 | * termcap.c: | ||
| 5 | * sysdep.c: | ||
| 6 | * lread.c: | ||
| 7 | * keyboard.c: | ||
| 8 | * filelock.c: | ||
| 9 | * fileio.c: | ||
| 10 | * doc.c: | ||
| 11 | * callproc.c: | ||
| 12 | * alloc.c: Remove include guards for <fcntl.h>, process.c already | ||
| 13 | does it. | ||
| 14 | |||
| 3 | * process.c: Do not include <sys/wait.h>, syswait.h does it. | 15 | * process.c: Do not include <sys/wait.h>, syswait.h does it. |
| 4 | 16 | ||
| 5 | * sysdep.c (flush_pending_output): Remove code, does not do | 17 | * sysdep.c (flush_pending_output): Remove code, does not do |
diff --git a/src/alloc.c b/src/alloc.c index 5cbc7cfe411..0ab4f9f8f85 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -65,15 +65,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 65 | extern POINTER_TYPE *sbrk (); | 65 | extern POINTER_TYPE *sbrk (); |
| 66 | #endif | 66 | #endif |
| 67 | 67 | ||
| 68 | #ifdef HAVE_FCNTL_H | ||
| 69 | #include <fcntl.h> | 68 | #include <fcntl.h> |
| 70 | #endif | ||
| 71 | #ifndef O_WRONLY | 69 | #ifndef O_WRONLY |
| 72 | #define O_WRONLY 1 | 70 | #define O_WRONLY 1 |
| 73 | #endif | 71 | #endif |
| 74 | 72 | ||
| 75 | #ifdef WINDOWSNT | 73 | #ifdef WINDOWSNT |
| 76 | #include <fcntl.h> | ||
| 77 | #include "w32.h" | 74 | #include "w32.h" |
| 78 | #endif | 75 | #endif |
| 79 | 76 | ||
diff --git a/src/callproc.c b/src/callproc.c index 346a913626d..ee587605f7a 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -31,20 +31,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 31 | #endif | 31 | #endif |
| 32 | 32 | ||
| 33 | #include <sys/file.h> | 33 | #include <sys/file.h> |
| 34 | #ifdef HAVE_FCNTL_H | ||
| 35 | #include <fcntl.h> | 34 | #include <fcntl.h> |
| 36 | #endif | ||
| 37 | 35 | ||
| 38 | #ifdef WINDOWSNT | 36 | #ifdef WINDOWSNT |
| 39 | #define NOMINMAX | 37 | #define NOMINMAX |
| 40 | #include <windows.h> | 38 | #include <windows.h> |
| 41 | #include <fcntl.h> | ||
| 42 | #include "w32.h" | 39 | #include "w32.h" |
| 43 | #define _P_NOWAIT 1 /* from process.h */ | 40 | #define _P_NOWAIT 1 /* from process.h */ |
| 44 | #endif | 41 | #endif |
| 45 | 42 | ||
| 46 | #ifdef MSDOS /* Demacs 1.1.1 91/10/16 HIRANO Satoshi */ | 43 | #ifdef MSDOS /* Demacs 1.1.1 91/10/16 HIRANO Satoshi */ |
| 47 | #include <fcntl.h> | ||
| 48 | #include <sys/stat.h> | 44 | #include <sys/stat.h> |
| 49 | #include <sys/param.h> | 45 | #include <sys/param.h> |
| 50 | #endif /* MSDOS */ | 46 | #endif /* MSDOS */ |
| @@ -25,10 +25,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 25 | #include <sys/file.h> /* Must be after sys/types.h for USG*/ | 25 | #include <sys/file.h> /* Must be after sys/types.h for USG*/ |
| 26 | #include <ctype.h> | 26 | #include <ctype.h> |
| 27 | #include <setjmp.h> | 27 | #include <setjmp.h> |
| 28 | |||
| 29 | #ifdef HAVE_FCNTL_H | ||
| 30 | #include <fcntl.h> | 28 | #include <fcntl.h> |
| 31 | #endif | ||
| 32 | 29 | ||
| 33 | #ifdef HAVE_UNISTD_H | 30 | #ifdef HAVE_UNISTD_H |
| 34 | #include <unistd.h> | 31 | #include <unistd.h> |
diff --git a/src/fileio.c b/src/fileio.c index bf6b7699883..bdef3008750 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -20,11 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <limits.h> | 22 | #include <limits.h> |
| 23 | |||
| 24 | #ifdef HAVE_FCNTL_H | ||
| 25 | #include <fcntl.h> | 23 | #include <fcntl.h> |
| 26 | #endif | ||
| 27 | |||
| 28 | #include <stdio.h> | 24 | #include <stdio.h> |
| 29 | #include <sys/types.h> | 25 | #include <sys/types.h> |
| 30 | #include <sys/stat.h> | 26 | #include <sys/stat.h> |
diff --git a/src/filelock.c b/src/filelock.c index 59076eb6a4a..acca7234419 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -31,9 +31,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 31 | #endif | 31 | #endif |
| 32 | 32 | ||
| 33 | #include <sys/file.h> | 33 | #include <sys/file.h> |
| 34 | #ifdef HAVE_FCNTL_H | ||
| 35 | #include <fcntl.h> | 34 | #include <fcntl.h> |
| 36 | #endif | ||
| 37 | 35 | ||
| 38 | #ifdef HAVE_UNISTD_H | 36 | #ifdef HAVE_UNISTD_H |
| 39 | #include <unistd.h> | 37 | #include <unistd.h> |
diff --git a/src/keyboard.c b/src/keyboard.c index 890ab80aee6..9e7225805d5 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -62,9 +62,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 62 | #include <unistd.h> | 62 | #include <unistd.h> |
| 63 | #endif | 63 | #endif |
| 64 | 64 | ||
| 65 | #ifdef HAVE_FCNTL_H | ||
| 66 | #include <fcntl.h> | 65 | #include <fcntl.h> |
| 67 | #endif | ||
| 68 | 66 | ||
| 69 | /* This is to get the definitions of the XK_ symbols. */ | 67 | /* This is to get the definitions of the XK_ symbols. */ |
| 70 | #ifdef HAVE_X_WINDOWS | 68 | #ifdef HAVE_X_WINDOWS |
diff --git a/src/lread.c b/src/lread.c index 81b7082204c..69e9a4629d2 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -54,9 +54,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 54 | #include <locale.h> | 54 | #include <locale.h> |
| 55 | #endif /* HAVE_SETLOCALE */ | 55 | #endif /* HAVE_SETLOCALE */ |
| 56 | 56 | ||
| 57 | #ifdef HAVE_FCNTL_H | ||
| 58 | #include <fcntl.h> | 57 | #include <fcntl.h> |
| 59 | #endif | ||
| 60 | #ifndef O_RDONLY | 58 | #ifndef O_RDONLY |
| 61 | #define O_RDONLY 0 | 59 | #define O_RDONLY 0 |
| 62 | #endif | 60 | #endif |
diff --git a/src/sysdep.c b/src/sysdep.c index 027ebef9576..f46a9e614b9 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -71,10 +71,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 71 | #endif | 71 | #endif |
| 72 | 72 | ||
| 73 | #include <sys/file.h> | 73 | #include <sys/file.h> |
| 74 | |||
| 75 | #ifdef HAVE_FCNTL_H | ||
| 76 | #include <fcntl.h> | 74 | #include <fcntl.h> |
| 77 | #endif | ||
| 78 | 75 | ||
| 79 | #include "systty.h" | 76 | #include "systty.h" |
| 80 | #include "syswait.h" | 77 | #include "syswait.h" |
diff --git a/src/termcap.c b/src/termcap.c index ea4ef244f64..a8eabf25529 100644 --- a/src/termcap.c +++ b/src/termcap.c | |||
| @@ -23,9 +23,7 @@ Boston, MA 02110-1301, USA. */ | |||
| 23 | #include <lisp.h> /* xmalloc is here */ | 23 | #include <lisp.h> /* xmalloc is here */ |
| 24 | /* Get the O_* definitions for open et al. */ | 24 | /* Get the O_* definitions for open et al. */ |
| 25 | #include <sys/file.h> | 25 | #include <sys/file.h> |
| 26 | #ifdef HAVE_FCNTL_H | ||
| 27 | #include <fcntl.h> | 26 | #include <fcntl.h> |
| 28 | #endif | ||
| 29 | #ifdef HAVE_UNISTD_H | 27 | #ifdef HAVE_UNISTD_H |
| 30 | #include <unistd.h> | 28 | #include <unistd.h> |
| 31 | #endif | 29 | #endif |