From: Dave Love Date: Fri, 23 Jun 2000 16:31:30 +0000 (+0000) Subject: Use feature tests for fcntl.h, string.h. Don't include time.h, done by X-Git-Url: https://git.hcoop.net/bpt/emacs.git/commitdiff_plain/e5ef3cdf115590a8808c88ec48fcfb82f4b7f2f2?hp=0d607c3e009e7e40f30daa35c2bf6360bcb9f4b0 Use feature tests for fcntl.h, string.h. Don't include time.h, done by systime.h. [__FreeBSD__]: Remove redundant includes. --- diff --git a/src/filelock.c b/src/filelock.c index 71fa7867cf..4ca356f337 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -32,33 +32,32 @@ Boston, MA 02111-1307, USA. */ #endif /* not VMS */ #include -#ifdef USG +#ifdef HAVE_FCNTL_H #include +#endif +#ifdef HAVE_STRING_H #include -#endif /* USG */ +#endif #ifdef HAVE_UNISTD_H #include #endif #ifdef __FreeBSD__ -#include -#include #include #endif /* __FreeBSD__ */ +#include +#ifndef errno +extern int errno; +#endif + #include "lisp.h" #include "buffer.h" #include "charset.h" #include "coding.h" #include "systime.h" -#include -#include -#ifndef errno -extern int errno; -#endif - /* The directory for writing temporary files. */ Lisp_Object Vtemporary_file_directory;