Skip to content

Commit

Permalink
tools.open62541_1_3: new patch Bugfix for Shared Build
Browse files Browse the repository at this point in the history
  • Loading branch information
vivienCEA committed Oct 7, 2024
1 parent b6bedd6 commit 0e4cc50
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/epnix/tools/open62541_1_3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ in
};

patches = [
# https://github.com/epics-modules/opcua/blob/b5db09477eb6404187199753df9e626d9a432210/devOpcuaSup/open62541/README.md#bugfix-for-shared-build
(./shared_build.patch)
(fetchpatch {
name = "Ensure-absolute-paths-in-pkg-config-file.patch";
url = "https://github.com/open62541/open62541/commit/023d4b6b8bdec987f8f3ffee6c09801bbee4fa2d.patch";
Expand Down
13 changes: 13 additions & 0 deletions pkgs/epnix/tools/open62541_1_3/shared_build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/ua_types.c b/src/ua_types.c
index b8f6739bb..7e8f7c43d 100644
--- a/src/ua_types.c
+++ b/src/ua_types.c
@@ -1880,7 +1880,7 @@ UA_Array_delete(void *p, size_t size, const UA_DataType *type) {
}

#ifdef UA_ENABLE_TYPEDESCRIPTION
-UA_Boolean
+UA_Boolean UA_EXPORT
UA_DataType_getStructMember(const UA_DataType *type, const char *memberName,
size_t *outOffset, const UA_DataType **outMemberType,
UA_Boolean *outIsArray) {

0 comments on commit 0e4cc50

Please sign in to comment.