From 370cc7cdf7010a845020c14e1bcfece9d7c923a2 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 12 Mar 2020 17:25:56 +0100 Subject: [PATCH] disable_system_calls: ensure gettimeofday is not a macro Signed-off-by: Nikos Mavrogiannopoulos --- src/worker-privs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/worker-privs.c b/src/worker-privs.c index b4997cbd..835a7fc5 100644 --- a/src/worker-privs.c +++ b/src/worker-privs.c @@ -40,6 +40,9 @@ # endif #endif +/* On certain cases gnulib defines gettimeofday as macro; avoid that */ +#undef gettimeofday + int disable_system_calls(struct worker_st *ws) { int ret;