changeset 1862:6f265a35159a

Fix -Wexpansion-to-defined failure on clang (failure introduced in previous re-exec commit)
author Matt Johnston <matt@ucc.asn.au>
date Sun, 30 Jan 2022 10:23:06 +0800
parents 2b3a8026a6ce
children b550845e500b
files sysoptions.h
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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