]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix build where ucontext is defined in ucontext.h
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Jul 2018 09:45:43 +0000 (10:45 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Jul 2018 09:47:19 +0000 (10:47 +0100)
CMakeLists.txt
config.h.in
src/libserver/worker_util.c

index c9d99df7f43619c1882cadb888d19ccbadda6ab5..049d77d304b0b639986b7e15991871ab93e47eb0 100644 (file)
@@ -906,6 +906,7 @@ CHECK_INCLUDE_FILES(cpuid.h HAVE_CPUID_H)
 CHECK_INCLUDE_FILES(dirent.h HAVE_DIRENT_H)
 CHECK_INCLUDE_FILES(stropts.h HAVE_STROPS_H)
 CHECK_INCLUDE_FILES(sys/ioctl.h HAVE_SYS_IOCTL_H)
+CHECK_INCLUDE_FILES(ucontext.h HAVE_UCONTEXT_H)
 
 # Check platform API
 CHECK_FUNCTION_EXISTS(setproctitle HAVE_SETPROCTITLE)
index 5b22d3df96ddeb4795251af52c2fa0724e9763b2..d6a6a2cbeb86fd70c5114c0469135a6e17a85427 100644 (file)
 #cmakedefine HAVE_TANHL          1
 #cmakedefine HAVE_TERMIOS_H      1
 #cmakedefine HAVE_TIME_H         1
+#cmakedefine HAVE_UCONTEXT_H     1
 #cmakedefine HAVE_UNISTD_H       1
 #cmakedefine HAVE_VFORK          1
 #cmakedefine HAVE_WAIT4          1
index 68ea9730ee07419658a830a52223c409ad970b5f..7380a1ffd921bd741d948e25b082f747931ff352 100644 (file)
 #define UNWIND_BACKTRACE_DEPTH 256
 #endif
 
+#ifdef HAVE_UCONTEXT_H
+#include <ucontext.h>
+#endif
+
 static void rspamd_worker_ignore_signal (int signo);
 /**
  * Return worker's control structure by its type