diff options
author | Matt Johnston <matt@ucc.asn.au> | 2023-01-04 20:32:23 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2023-01-04 20:32:23 +0800 |
commit | 7a53c7f0f4b3eb23e002819553cb45558642c01d (patch) | |
tree | 94f632007a1fcf2308b9be674d9e9bc51b34f155 | |
parent | febb805742b83e39065df5c81e28d94b0d7a8d16 (diff) | |
download | dropbear-7a53c7f0f4b3eb23e002819553cb45558642c01d.tar.gz |
Fix building only client or server
Regressed when -Wundef was added
Fixes #210
-rw-r--r-- | sysoptions.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sysoptions.h b/sysoptions.h index 385914a..82249f5 100644 --- a/sysoptions.h +++ b/sysoptions.h @@ -10,6 +10,14 @@ #define LOCAL_IDENT "SSH-2.0-dropbear_" DROPBEAR_VERSION #define PROGNAME "dropbear" +#ifndef DROPBEAR_CLIENT +#define DROPBEAR_CLIENT 0 +#endif + +#ifndef DROPBEAR_SERVER +#define DROPBEAR_SERVER 0 +#endif + /* Spec recommends after one hour or 1 gigabyte of data. One hour * is a bit too verbose, so we try 8 hours */ #ifndef KEX_REKEY_TIMEOUT |