r20816: merge from samba3:
authorStefan Metzmacher <metze@samba.org>
Mon, 15 Jan 2007 19:08:03 +0000 (19:08 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:43:35 +0000 (14:43 -0500)
include setjmp.h via system/wait.h

metze

source/configure.ac
source/lib/replace/libreplace.m4
source/lib/replace/system/wait.h
source/web_server/config.m4 [deleted file]
source/web_server/http.c

index 56814712179c3b71e74fe3bdb71990d860e739d0..e75da107c9fc34a88804926700917092e2f24516 100644 (file)
@@ -42,7 +42,6 @@ m4_include(gtk/config.m4)
 m4_include(ntvfs/posix/config.m4)
 m4_include(ntvfs/unixuid/config.m4)
 m4_include(lib/socket_wrapper/config.m4)
-m4_include(web_server/config.m4)
 m4_include(auth/config.m4)
 m4_include(kdc/config.m4)
 m4_include(ntvfs/sysdep/config.m4)
index dff60982971253f0431812297352585fa71a868a..3328dea95e86df89a8f63c02c33a0d6b37d294d4 100644 (file)
@@ -62,6 +62,7 @@ AC_FUNC_MEMCMP
 AC_CHECK_FUNCS(pipe strftime srandom random srand rand usleep setbuffer lstat getpgrp)
 
 AC_CHECK_HEADERS(stdbool.h sys/select.h)
+AC_CHECK_HEADERS(setjmp.h)
 
 AC_CHECK_TYPE(bool, 
 [AC_DEFINE(HAVE_BOOL, 1, [Whether the bool type is available])],,
index c2041a5938cab16f0206aec9c66e3bd74af00440..3855f7ae724e2c588a1d51e6982d1bfe0fd259ce 100644 (file)
@@ -36,4 +36,8 @@
 #define SIGNAL_CAST (RETSIGTYPE (*)(int))
 #endif
 
+#ifdef HAVE_SETJMP_H
+#include <setjmp.h>
+#endif
+
 #endif
diff --git a/source/web_server/config.m4 b/source/web_server/config.m4
deleted file mode 100644 (file)
index 2dd5e5b..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-AC_CHECK_HEADERS(setjmp.h)
-
index 30ca17411ebf27bd8f7ca4fcfb1617f63a244d6c..8c6cb1fa3a0ed4524fd0b4463cb97e8fc8b3491e 100644 (file)
@@ -27,6 +27,7 @@
 #include "smbd/service.h"
 #include "lib/events/events.h"
 #include "system/time.h"
+#include "system/wait.h"
 #include "lib/appweb/esp/esp.h"
 #include "lib/appweb/ejs/ejsInternal.h"
 #include "lib/util/dlinklist.h"
@@ -484,7 +485,6 @@ static void http_setup_arrays(struct esp_state *esp)
    it hits a major error. We need to catch these and
    report a internal server error via http
 */
-#include <setjmp.h>
 static jmp_buf ejs_exception_buf;
 static const char *exception_reason;