# HG changeset patch # User Matt Johnston # Date 1643509386 -28800 # Node ID 6f265a35159a764d40cfb71cd6c64942f9bec642 # Parent 2b3a8026a6ce78dcecba41dbb3fe6e29d7f5e8ab Fix -Wexpansion-to-defined failure on clang (failure introduced in previous re-exec commit) diff -r 2b3a8026a6ce -r 6f265a35159a sysoptions.h --- a/sysoptions.h Sun Jan 30 10:14:56 2022 +0800 +++ b/sysoptions.h Sun Jan 30 10:23:06 2022 +0800 @@ -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