]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/mman/mman-static.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / mman / mman-static.patch
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 4696ad4..a72bbce 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -8,6 +8,10 @@ option (BUILD_TESTS "tests?" OFF)
6 set (headers mman.h)
7 set (sources mman.c)
8
9 +if(NOT BUILD_SHARED_LIBS)
10 + add_definitions(-DMMANSHARED_EXPORT=)
11 +endif()
12 +
13 add_library (mman ${sources})
14
15 install (TARGETS mman RUNTIME DESTINATION bin
16 diff --git a/mman.h b/mman.h
17 index 4065bc6..435ea26 100644
18 --- a/mman.h
19 +++ b/mman.h
20 @@ -15,11 +15,13 @@
21 #include <_mingw.h>
22 #endif
23
24 +#if !defined(MMANSHARED_EXPORT)
25 #if defined(MMAN_LIBRARY)
26 #define MMANSHARED_EXPORT __declspec(dllexport)
27 #else
28 #define MMANSHARED_EXPORT __declspec(dllimport)
29 #endif
30 +#endif
31
32 /* Determine offset type */
33 #include <stdint.h>