aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/lcm/fix-build-error.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/lcm/fix-build-error.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/lcm/fix-build-error.patch')
-rw-r--r--vcpkg/ports/lcm/fix-build-error.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/vcpkg/ports/lcm/fix-build-error.patch b/vcpkg/ports/lcm/fix-build-error.patch
new file mode 100644
index 0000000..ffca33d
--- /dev/null
+++ b/vcpkg/ports/lcm/fix-build-error.patch
@@ -0,0 +1,32 @@
+diff --git a/lcm/windows/WinPorting.cpp b/lcm/windows/WinPorting.cpp
+index e22acd6..b9c7e69 100644
+--- a/lcm/windows/WinPorting.cpp
++++ b/lcm/windows/WinPorting.cpp
+@@ -1,8 +1,8 @@
+
+ #define _WIN32_WINNT 0x0501
+-#include <Mswsock.h>
+ #include <stdio.h>
+ #include <winsock2.h>
++#include <Mswsock.h>
+
+ #include "WinPorting.h"
+
+diff --git a/lcmgen/emit_go.c b/lcmgen/emit_go.c
+index c520044..b5be56a 100644
+--- a/lcmgen/emit_go.c
++++ b/lcmgen/emit_go.c
+@@ -6,8 +6,13 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#ifdef WIN32
++#include <io.h>
++#else
+ #include <unistd.h>
++#endif
+ #ifdef WIN32
++#define F_OK 0
+ #define __STDC_FORMAT_MACROS // Enable integer types
+ #endif
+