ports/security/ykpers/files/patch-09ea16d9.c
Niclas Zeising fd1860dbb6 security/ykpers: Fix build with -fno-common
Add a patch from upstream to fix the build with -fno-common, which is the
default with llvm 11.

MFH:		2020Q3
2020-08-19 23:15:48 +00:00

15 lines
377 B
C

diff --git a/ykpers-args.h b/ykpers-args.h
index 2a63268..9ff455a 100644
--- ykpers-args.h
+++ ykpers-args.h
@@ -33,8 +33,8 @@
#include "ykpers.h"
-const char *usage;
-const char *optstring;
+extern const char *usage;
+extern const char *optstring;
int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, char *oathid,
size_t oathid_len, const char **infname,