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
This commit is contained in:
Niclas Zeising 2020-08-19 23:15:48 +00:00
parent 5569291f9a
commit fd1860dbb6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545467

View File

@ -0,0 +1,15 @@
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,