From 452b4d34713314636d99bfeee0e1585d1e7f36d2 Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Tue, 16 Oct 2018 16:31:51 +0300 Subject: [PATCH] dropbear: ifndef/endif checks for CHECKCLEARTOWRITE() cherry-pick upstream commit 89bdf3b0b9376204b039f38f8bebffa92cb30d4e Signed-off-by: Konstantin Demin --- .../dropbear/patches/020-debug-fix-define.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/network/services/dropbear/patches/020-debug-fix-define.patch diff --git a/package/network/services/dropbear/patches/020-debug-fix-define.patch b/package/network/services/dropbear/patches/020-debug-fix-define.patch new file mode 100644 index 0000000000..efad8e9478 --- /dev/null +++ b/package/network/services/dropbear/patches/020-debug-fix-define.patch @@ -0,0 +1,12 @@ +--- a/debug.h ++++ b/debug.h +@@ -39,7 +39,9 @@ + /*#define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \ + ses.writepayload->pos == 0)*/ + ++#ifndef CHECKCLEARTOWRITE + #define CHECKCLEARTOWRITE() ++#endif + + /* Define this, compile with -pg and set GMON_OUT_PREFIX=gmon to get gmon + * output when Dropbear forks. This will allow it gprof to be used. -- 2.30.2