From 2d31fbc5ce3711d3fed59d7f8baf808807192564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Mon, 12 Aug 1996 18:18:39 +0200 Subject: [PATCH] now checks for <setjmp.h> Rev: src/configure.in:1.17 Rev: src/error.h:1.4 --- src/configure.in | 2 +- src/error.h | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/configure.in b/src/configure.in index a2a383c075..c7a64cf976 100644 --- a/src/configure.in +++ b/src/configure.in @@ -228,7 +228,7 @@ AC_HEADER_TIME AC_HEADER_STDC AC_CHECK_HEADERS(sys/rusage.h time.h sys/time.h unistd.h stdlib.h memory.h \ values.h string.h fcntl.h sys/filio.h sys/sockio.h crypt.h locale.h \ -sys/resource.h sys/select.h sys/mman.h) +sys/resource.h sys/select.h sys/mman.h setjmp.h) AC_SIZEOF_TYPE(char *) AC_SIZEOF_TYPE(long) diff --git a/src/error.h b/src/error.h index 6934591dc8..e10d270379 100644 --- a/src/error.h +++ b/src/error.h @@ -6,9 +6,15 @@ #ifndef ERROR_H #define ERROR_H +#include "machine.h" + +#ifdef HAVE_SETJMP_H #include <setjmp.h> +#undef HAVE_SETJMP_H +#endif + #include <stdarg.h> -#include "machine.h" + #include "svalue.h" -- GitLab