Commit 1001cd10 authored by Federico G. Schwindt's avatar Federico G. Schwindt

This should also compile if sigaltstack is missing

parent 4ce93767
......@@ -31,8 +31,10 @@
#include "cache_varnishd.h"
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_SIGALTSTACK
# include <sys/mman.h>
#endif
......@@ -125,7 +127,6 @@ THR_GetName(void)
* Generic setup all our threads should call
*/
#ifdef HAVE_SIGALTSTACK
#include <signal.h>
static stack_t altstack;
#endif
......@@ -277,6 +278,8 @@ child_sigmagic(size_t altstksz)
altstack.ss_size = sz;
altstack.ss_flags = 0;
sa.sa_flags |= SA_ONSTACK;
#else
(void)altstksz;
#endif
THR_Init();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment