]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/lcm/fix-build-error.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / lcm / fix-build-error.patch
CommitLineData
1e59de90
TL
1diff --git a/lcm/windows/WinPorting.cpp b/lcm/windows/WinPorting.cpp
2index e22acd6..b9c7e69 100644
3--- a/lcm/windows/WinPorting.cpp
4+++ b/lcm/windows/WinPorting.cpp
5@@ -1,8 +1,8 @@
6
7 #define _WIN32_WINNT 0x0501
8-#include <Mswsock.h>
9 #include <stdio.h>
10 #include <winsock2.h>
11+#include <Mswsock.h>
12
13 #include "WinPorting.h"
14
15diff --git a/lcmgen/emit_go.c b/lcmgen/emit_go.c
16index c520044..b5be56a 100644
17--- a/lcmgen/emit_go.c
18+++ b/lcmgen/emit_go.c
19@@ -6,8 +6,13 @@
20 #include <stdio.h>
21 #include <stdlib.h>
22 #include <string.h>
23+#ifdef WIN32
24+#include <io.h>
25+#else
26 #include <unistd.h>
27+#endif
28 #ifdef WIN32
29+#define F_OK 0
30 #define __STDC_FORMAT_MACROS // Enable integer types
31 #endif
32