mirror of
https://github.com/openwrt/packages.git
synced 2025-12-27 05:54:58 +04:00
Merge pull request #12652 from neheb/ykp
ykpers: fix compilation with GCC10
This commit is contained in:
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ykpers
|
||||
PKG_VERSION:=1.20.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://developers.yubico.com/yubikey-personalization/Releases
|
||||
|
||||
13
utils/ykpers/patches/010-gcc10.patch
Normal file
13
utils/ykpers/patches/010-gcc10.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- a/ykpers-args.h
|
||||
+++ b/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,
|
||||
Reference in New Issue
Block a user