diff options
Diffstat (limited to 'readline/posixjmp.h')
-rw-r--r-- | readline/posixjmp.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/readline/posixjmp.h b/readline/posixjmp.h index 8703d17e9fb..1347cc07ebc 100644 --- a/readline/posixjmp.h +++ b/readline/posixjmp.h @@ -9,10 +9,12 @@ #if defined (HAVE_POSIX_SIGSETJMP) # define procenv_t sigjmp_buf -# undef setjmp -# define setjmp(x) sigsetjmp((x), 1) -# undef longjmp -# define longjmp(x, n) siglongjmp((x), (n)) +# if !defined (__OPENNT) +# undef setjmp +# define setjmp(x) sigsetjmp((x), 1) +# undef longjmp +# define longjmp(x, n) siglongjmp((x), (n)) +# endif /* !__OPENNT */ #else # define procenv_t jmp_buf #endif |