aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix_defs.h
diff options
context:
space:
mode:
authorJulian Orth <ju.orth@gmail.com>2014-03-15 02:15:00 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-31 21:24:59 -0300
commit60a7ad8a4798fc81c2357dc5ec996c00e4270115 (patch)
tree58275f3306f072f74a78754bbefd9d53078515fd /src/os_unix_defs.h
parentf9b5ca8b857b425635557dda9e587a7c43d1739a (diff)
downloadrneovim-60a7ad8a4798fc81c2357dc5ec996c00e4270115.tar.gz
rneovim-60a7ad8a4798fc81c2357dc5ec996c00e4270115.tar.bz2
rneovim-60a7ad8a4798fc81c2357dc5ec996c00e4270115.zip
remove HAVE_SETJMP_H
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() */