summaryrefslogtreecommitdiff
path: root/src/s/gnu.h
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-07-09 21:33:53 -0400
committerGlenn Morris <rgm@gnu.org>2012-07-09 21:33:53 -0400
commit40289a1294e55cda1430474669bce34096e4e08f (patch)
tree48ac6104463c1b03474e1cce8ccc671e0467c860 /src/s/gnu.h
parent40e727619ad0e815dab636a6a969862cee9a0638 (diff)
downloademacs-40289a1294e55cda1430474669bce34096e4e08f.tar.gz
* src/s/gnu.h: Don't include fcntl.h
(every file in Emacs that uses O_RDONLY already includes it; and this does not seem like the problem a src/s file should be trying to solve).
Diffstat (limited to 'src/s/gnu.h')
-rw-r--r--src/s/gnu.h5
1 files changed, 1 insertions, 4 deletions
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/>. */
/* libc defines data_start. */
#define DATA_START ({ extern int data_start; (char *) &data_start; })
-/* Some losing code fails to include this and then assumes
- that because it is braindead that O_RDONLY==0. */
-#include <fcntl.h>
-
+/* It would be harmless to drop the ifdef emacs test. */
#ifdef emacs
#include <stdio.h> /* Get the definition of _IO_STDIO_H. */
#if defined (_IO_STDIO_H) || defined (_STDIO_USES_IOSTREAM)