summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-10-09 09:36:06 +1100
committerDarren Tucker <dtucker@dtucker.net>2019-10-09 09:36:06 +1100
commit86a0323374cbd404629e75bb320b3fa1c16aaa6b (patch)
tree49e75a8caecc0cae0d8dc84766c8995b9b98393c /openbsd-compat
parentcfc1897a2002ec6c4dc879b24e8b3153c87ea2cf (diff)
Make MAKE_CLONE no-op macro more correct.
Similar to the previous change to DEF_WEAK, some compilers don't like the empty statement, so convert into a no-op function prototype.
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/sha2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsd-compat/sha2.c b/openbsd-compat/sha2.c
index bd62f957..e63324c9 100644
--- a/openbsd-compat/sha2.c
+++ b/openbsd-compat/sha2.c
@@ -41,7 +41,8 @@
#if !defined(HAVE_SHA256UPDATE) || !defined(HAVE_SHA384UPDATE) || \
!defined(HAVE_SHA512UPDATE)
-#define MAKE_CLONE(x, y) /* no-op out */
+/* no-op out, similar to DEF_WEAK but only needed here */
+#define MAKE_CLONE(x, y) void __ssh_compat_make_clone_##x_##y(void);
#include <string.h>
#include <sha2.h>