mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
ykpers: fix compilation with GCC10
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
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