]> code.delx.au - gnu-emacs/commitdiff
(fcntl.h): Test only HAVE_FCNTL_H.
authorRichard M. Stallman <rms@gnu.org>
Wed, 4 Dec 2002 11:44:34 +0000 (11:44 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 4 Dec 2002 11:44:34 +0000 (11:44 +0000)
src/fileio.c
src/sysdep.c

index 0b06e4fee344b5cd3667cb8b24deaa4f1a711158..890ef2de3710be6a3e31ae1ba233192b86e4d0d6 100644 (file)
@@ -21,7 +21,7 @@ Boston, MA 02111-1307, USA.  */
 
 #include <config.h>
 
-#if defined (USG5) || defined (BSD_SYSTEM) || defined (GNU_LINUX)
+#ifdef HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
 
index 28ab676c69cf0eaa36ddae15064186bd0e06ae35..322869eb71e9cd048d4ab08289df4af72a7afcb1 100644 (file)
@@ -147,17 +147,9 @@ extern int errno;
 #include <sys/file.h>
 #endif /* not VMS */
 
-#ifndef BSD4_1
-#ifdef BSD_SYSTEM /* avoid writing defined (BSD_SYSTEM) || defined (USG)
-             because the vms compiler doesn't grok `defined' */
+#ifdef HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
-#ifdef USG
-#ifndef USG5
-#include <fcntl.h>
-#endif
-#endif
-#endif /* not 4.1 bsd */
 
 #ifndef MSDOS
 #include <sys/ioctl.h>