void-packages/srcpkgs/OpenCPN/patches/musl.patch

36 lines
932 B
Diff

https://git.alpinelinux.org/aports/plain/community/opencpn/gcc12.patch
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>