diff options
author | Matt Johnston <matt@ucc.asn.au> | 2022-01-30 10:23:06 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2022-01-30 10:23:06 +0800 |
commit | da7f77a50d1f1e23f44cb5a7188e6be01a8c191a (patch) | |
tree | 1bb13859aae0ff8f33c237197469e296e18776a9 | |
parent | c7b7c9a99d75eb1c1225e9714bbaac9446ea5424 (diff) | |
download | dropbear-da7f77a50d1f1e23f44cb5a7188e6be01a8c191a.tar.gz |
Fix -Wexpansion-to-defined failure on clang
(failure introduced in previous re-exec commit)
-rw-r--r-- | sysoptions.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 |