aboutsummaryrefslogtreecommitdiffstats
path: root/community/opencpn/gcc12.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/opencpn/gcc12.patch')
-rw-r--r--community/opencpn/gcc12.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/opencpn/gcc12.patch b/community/opencpn/gcc12.patch
new file mode 100644
index 00000000000..c1da0855551
--- /dev/null
+++ b/community/opencpn/gcc12.patch
@@ -0,0 +1,33 @@
+diff --git a/include/zeroconf-detail.hpp b/include/zeroconf-detail.hpp
+index 60ae125..3e7607a 100644
+--- a/include/zeroconf-detail.hpp
++++ b/include/zeroconf-detail.hpp
+@@ -11,6 +11,9 @@
+ #include <vector>
+ #include <memory>
+ #include <chrono>
++#include <ctime>
++
++#include <sys/select.h>
+
+ #if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
+ #define WIN32
+@@ -385,4 +388,4 @@ inline bool Resolve(const std::string& serviceName, time_t scanTime,
+ } // namespace Detail
+ } // namespace Zeroconf
+
+-#endif // ZEROCONF_DETAIL_HPP
+\ No newline at end of file
++#endif // ZEROCONF_DETAIL_HPP
+diff --git a/src/mDNS_service.cpp b/src/mDNS_service.cpp
+index c8c7877..3fbd7ea 100644
+--- a/src/mDNS_service.cpp
++++ b/src/mDNS_service.cpp
+@@ -35,6 +35,7 @@
+ #endif
+
+ #include <stdio.h>
++#include <sys/select.h>
+
+ #include <errno.h>
+ #include <signal.h>