diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/s/gnu.h | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 584d6a33947..754f0caf9db 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-07-10 Glenn Morris <rgm@gnu.org> | 1 | 2012-07-10 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * s/gnu.h: Don't include fcntl.h (every file in Emacs that uses | ||
| 4 | O_RDONLY already includes it). | ||
| 5 | |||
| 3 | Stop ns builds setting the EMACSLOADPATH environment variable. | 6 | Stop ns builds setting the EMACSLOADPATH environment variable. |
| 4 | * nsterm.m (ns_load_path): Rename from ns_init_paths. | 7 | * nsterm.m (ns_load_path): Rename from ns_init_paths. |
| 5 | Now it does not set EMACSLOADPATH, just returns the load-path string. | 8 | Now it does not set EMACSLOADPATH, just returns the load-path string. |
diff --git a/src/s/gnu.h b/src/s/gnu.h index a8e2c4cdbb8..8410ad666f5 100644 --- a/src/s/gnu.h +++ b/src/s/gnu.h | |||
| @@ -24,10 +24,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 24 | /* libc defines data_start. */ | 24 | /* libc defines data_start. */ |
| 25 | #define DATA_START ({ extern int data_start; (char *) &data_start; }) | 25 | #define DATA_START ({ extern int data_start; (char *) &data_start; }) |
| 26 | 26 | ||
| 27 | /* Some losing code fails to include this and then assumes | 27 | /* It would be harmless to drop the ifdef emacs test. */ |
| 28 | that because it is braindead that O_RDONLY==0. */ | ||
| 29 | #include <fcntl.h> | ||
| 30 | |||
| 31 | #ifdef emacs | 28 | #ifdef emacs |
| 32 | #include <stdio.h> /* Get the definition of _IO_STDIO_H. */ | 29 | #include <stdio.h> /* Get the definition of _IO_STDIO_H. */ |
| 33 | #if defined (_IO_STDIO_H) || defined (_STDIO_USES_IOSTREAM) | 30 | #if defined (_IO_STDIO_H) || defined (_STDIO_USES_IOSTREAM) |