mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
open-plc-utils: fix compilation with GCC10
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=open-plc-utils
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/qca/open-plc-utils.git
|
||||
|
||||
11
utils/open-plc-utils/patches/010-gcc10.patch
Normal file
11
utils/open-plc-utils/patches/010-gcc10.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/plc/plc.h
|
||||
+++ b/plc/plc.h
|
||||
@@ -498,7 +498,7 @@ struct __packed plcproperty
|
||||
uint8_t DATA_BUFFER [128];
|
||||
}
|
||||
|
||||
-plcproperty;
|
||||
+extern plcproperty;
|
||||
|
||||
#ifndef __GNUC__
|
||||
#pragma pack (pop)
|
||||
Reference in New Issue
Block a user