From 032147b69527e5448a511049b2d43dbcae582624 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sat, 15 Oct 2016 05:51:12 +1100 Subject: Move DEF_WEAK into defines.h. As well pull in more recent changes from OpenBSD these will start to arrive so put it where the definition is shared. --- defines.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'defines.h') diff --git a/defines.h b/defines.h index 68466a34..c89f85a8 100644 --- a/defines.h +++ b/defines.h @@ -832,6 +832,13 @@ struct winsize { # define SSH_IOBUFSZ 8192 #endif +/* + * We want functions in openbsd-compat, if enabled, to override system ones. + * We no-op out the weak symbol definition rather than remove it to reduce + * future sync problems. + */ +#define DEF_WEAK(x) + /* * Platforms that have arc4random_uniform() and not arc4random_stir() * shouldn't need the latter. -- cgit v1.2.1