aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2000-06-23 16:31:30 +0000
committerDave Love2000-06-23 16:31:30 +0000
commite5ef3cdf115590a8808c88ec48fcfb82f4b7f2f2 (patch)
treeca820eef2b6eb64a3128a28a5b6c890160d11034 /src
parent0d607c3e009e7e40f30daa35c2bf6360bcb9f4b0 (diff)
downloademacs-e5ef3cdf115590a8808c88ec48fcfb82f4b7f2f2.tar.gz
emacs-e5ef3cdf115590a8808c88ec48fcfb82f4b7f2f2.zip
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')
-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. */
32#endif /* not VMS */ 32#endif /* not VMS */
33 33
34#include <sys/file.h> 34#include <sys/file.h>
35#ifdef USG 35#ifdef HAVE_FCNTL_H
36#include <fcntl.h> 36#include <fcntl.h>
37#endif
38#ifdef HAVE_STRING_H
37#include <string.h> 39#include <string.h>
38#endif /* USG */ 40#endif
39 41
40#ifdef HAVE_UNISTD_H 42#ifdef HAVE_UNISTD_H
41#include <unistd.h> 43#include <unistd.h>
42#endif 44#endif
43 45
44#ifdef __FreeBSD__ 46#ifdef __FreeBSD__
45#include <sys/time.h>
46#include <sys/types.h>
47#include <sys/sysctl.h> 47#include <sys/sysctl.h>
48#endif /* __FreeBSD__ */ 48#endif /* __FreeBSD__ */
49 49
50#include <errno.h>
51#ifndef errno
52extern int errno;
53#endif
54
50#include "lisp.h" 55#include "lisp.h"
51#include "buffer.h" 56#include "buffer.h"
52#include "charset.h" 57#include "charset.h"
53#include "coding.h" 58#include "coding.h"
54#include "systime.h" 59#include "systime.h"
55 60
56#include <time.h>
57#include <errno.h>
58#ifndef errno
59extern int errno;
60#endif
61
62/* The directory for writing temporary files. */ 61/* The directory for writing temporary files. */
63 62
64Lisp_Object Vtemporary_file_directory; 63Lisp_Object Vtemporary_file_directory;