aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_unix_defs.h')
-rw-r--r--src/os_unix_defs.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/os_unix_defs.h b/src/os_unix_defs.h
index d65e606d6e..cb7d888bb1 100644
--- a/src/os_unix_defs.h
+++ b/src/os_unix_defs.h
@@ -287,17 +287,15 @@ int mch_rename(const char *src, const char *dest);
# include <strings.h>
#endif
-#if defined(HAVE_SETJMP_H)
-# include <setjmp.h>
-# ifdef HAVE_SIGSETJMP
-# define JMP_BUF sigjmp_buf
-# define SETJMP(x) sigsetjmp((x), 1)
-# define LONGJMP siglongjmp
-# else
-# define JMP_BUF jmp_buf
-# define SETJMP(x) setjmp(x)
-# define LONGJMP longjmp
-# endif
+#include <setjmp.h>
+#ifdef HAVE_SIGSETJMP
+# define JMP_BUF sigjmp_buf
+# define SETJMP(x) sigsetjmp((x), 1)
+# define LONGJMP siglongjmp
+#else
+# define JMP_BUF jmp_buf
+# define SETJMP(x) setjmp(x)
+# define LONGJMP longjmp
#endif
#define HAVE_DUP /* have dup() */