From da7f77a50d1f1e23f44cb5a7188e6be01a8c191a Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sun, 30 Jan 2022 10:23:06 +0800 Subject: [PATCH] Fix -Wexpansion-to-defined failure on clang (failure introduced in previous re-exec commit) --- sysoptions.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sysoptions.h b/sysoptions.h index 8bd3f3f..ed838ba 100644 --- a/sysoptions.h +++ b/sysoptions.h @@ -30,7 +30,11 @@ #endif /* Would probably work on freebsd but hasn't been tested */ -#define DROPBEAR_DO_REEXEC (defined(HAVE_FEXECVE) && DROPBEAR_REEXEC && defined(__linux__)) +#if defined(HAVE_FEXECVE) && DROPBEAR_REEXEC && defined(__linux__) +#define DROPBEAR_DO_REEXEC 1 +#else +#define DROPBEAR_DO_REEXEC 0 +#endif /* A client should try and send an initial key exchange packet guessing * the algorithm that will match - saves a round trip connecting, has little