summaryrefslogtreecommitdiff
path: root/src/filelock.c
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2000-06-23 16:31:30 +0000
committerDave Love <fx@gnu.org>2000-06-23 16:31:30 +0000
commite5ef3cdf115590a8808c88ec48fcfb82f4b7f2f2 (patch)
treeca820eef2b6eb64a3128a28a5b6c890160d11034 /src/filelock.c
parent0d607c3e009e7e40f30daa35c2bf6360bcb9f4b0 (diff)
downloademacs-e5ef3cdf115590a8808c88ec48fcfb82f4b7f2f2.tar.gz
Use feature tests for fcntl.h, string.h. Don't include time.h, done by
systime.h. [__FreeBSD__]: Remove redundant includes.
Diffstat (limited to 'src/filelock.c')
-rw-r--r--src/filelock.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/filelock.c b/src/filelock.c
index 71fa7867cf0..4ca356f337f 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -32,33 +32,32 @@ Boston, MA 02111-1307, USA. */
#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;