]> granicus.if.org Git - neomutt/commitdiff
drop HAVE_UNISTD_H
authorRichard Russon <rich@flatcap.org>
Mon, 1 May 2017 02:00:57 +0000 (03:00 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 2 May 2017 16:34:43 +0000 (17:34 +0100)
<unistd.h> is part of posix:2001

configure.ac
doc/makedoc.c
lib.h
mutt.h

index c277e21df2bde4b0dfd575e9f6490c35b2082840..5c0540b761cd14e63588ba5f0106fb18e56f99f7 100644 (file)
@@ -450,9 +450,7 @@ AC_EGREP_HEADER(volatile.*sig_atomic_t,signal.h,
 
 AC_CHECK_DECLS([sys_siglist],[],[],[#include <signal.h>
 /* NetBSD declares sys_siglist in unistd.h.  */
-#ifdef HAVE_UNISTD_H
 # include <unistd.h>
-#endif
 ])
 
 
index 09e01cf2b10bb564cd0b48afe64562029cb4f30b..35ff4c4f942b4a1cc9566cf560cfc894a74f8f71 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include "makedoc_defs.h"
-#ifdef HAVE_UNISTD_H
 #include <unistd.h>
-#endif
+#include "makedoc_defs.h"
 
 #ifndef HAVE_STRERROR
 #define strerror(x) ((x) > 0 && (x) < sys_nerr) ? sys_errlist[(x)] : 0
diff --git a/lib.h b/lib.h
index c4f9f590f8b8aa6573aa42f4c542a4bec1080573..6a6fa2ca21f0380a839c580f165c3cb05a8c1c31 100644 (file)
--- a/lib.h
+++ b/lib.h
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <time.h>
-
-#ifdef HAVE_UNISTD_H
 #include <unistd.h>
-#endif
 #ifndef _POSIX_PATH_MAX
 #include <limits.h>
 #endif
diff --git a/mutt.h b/mutt.h
index d2b5c8a68664c66fb1097bb39801179e7da8a10a..68890d26c7920e136079daedbcb984640e9f7413 100644 (file)
--- a/mutt.h
+++ b/mutt.h
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <time.h>
+#include <unistd.h>
 #include "charset.h"
 #include "hash.h"
 #include "rfc822.h"
-
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
 #ifndef _POSIX_PATH_MAX
 #include <limits.h>
 #endif