changeset 29910:e5461cec39b8

Use feature tests for fcntl.h, string.h. Don't include time.h, done by systime.h. [__FreeBSD__]: Remove redundant includes.
author Dave Love <fx@gnu.org>
date Fri, 23 Jun 2000 16:31:30 +0000
parents 2479a01a0bc3
children 02b0c6c15f1c
files src/filelock.c
diffstat 1 files changed, 9 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/filelock.c	Fri Jun 23 16:17:05 2000 +0000
+++ b/src/filelock.c	Fri Jun 23 16:31:30 2000 +0000
@@ -32,33 +32,32 @@
 #endif /* not VMS */
 
 #include <sys/file.h>
-#ifdef USG
+#ifdef HAVE_FCNTL_H
 #include <fcntl.h>
+#endif
+#ifdef HAVE_STRING_H
 #include <string.h>
-#endif /* USG */
+#endif
 
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
 
 #ifdef __FreeBSD__
-#include <sys/time.h>
-#include <sys/types.h>
 #include <sys/sysctl.h>
 #endif /* __FreeBSD__ */
 
+#include <errno.h>
+#ifndef errno
+extern int errno;
+#endif
+
 #include "lisp.h"
 #include "buffer.h"
 #include "charset.h"
 #include "coding.h"
 #include "systime.h"
 
-#include <time.h>
-#include <errno.h>
-#ifndef errno
-extern int errno;
-#endif
-
 /* The directory for writing temporary files.  */
 
 Lisp_Object Vtemporary_file_directory;