]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/libmodbus/fix-static-linkage.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / libmodbus / fix-static-linkage.patch
CommitLineData
1e59de90
TL
1diff --git a/src/modbus.h b/src/modbus.h
2index fbe20bc..895d05d 100644
3--- a/src/modbus.h
4+++ b/src/modbus.h
5@@ -24,6 +24,8 @@
6 # if defined(DLLBUILD)
7 /* define DLLBUILD when building the DLL */
8 # define MODBUS_API __declspec(dllexport)
9+# elif defined(LIBBUILD)
10+# define MODBUS_API
11 # else
12 # define MODBUS_API __declspec(dllimport)
13 # endif