Commit 998d7b2e authored by Federico G. Schwindt's avatar Federico G. Schwindt

Rework to make gcc happy

parent 71519e2d
...@@ -43,6 +43,10 @@ ...@@ -43,6 +43,10 @@
#include "vav.h" #include "vav.h"
#include "vcli_serve.h" #include "vcli_serve.h"
#if !defined(__has_feature)
#define __has_feature(x) 0
#endif
struct plist { struct plist {
unsigned magic; unsigned magic;
#define PLIST_MAGIC 0xbfc3ea16 #define PLIST_MAGIC 0xbfc3ea16
...@@ -510,8 +514,7 @@ MCF_InitParams(struct cli *cli) ...@@ -510,8 +514,7 @@ MCF_InitParams(struct cli *cli)
low = sysconf(_SC_THREAD_STACK_MIN); low = sysconf(_SC_THREAD_STACK_MIN);
MCF_ParamConf(MCF_MINIMUM, "thread_pool_stack", "%jdb", (intmax_t)low); MCF_ParamConf(MCF_MINIMUM, "thread_pool_stack", "%jdb", (intmax_t)low);
#if defined(__SANITIZER) || \ #if defined(__SANITIZER) || __has_feature(address_sanitizer)
(defined(__has_feature) && __has_feature(address_sanitizer))
def = 92 * 1024; def = 92 * 1024;
#else #else
def = 48 * 1024; def = 48 * 1024;
......
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