ports/devel/electron32/files/patch-third__party_libsync_src_sync.c
Hiroki Tagato 63a5b151bf devel/electron32: add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Build cross platform desktop apps with JavaScript, HTML, and CSS.

It's easier than you think.

If you can build a website, you can build a desktop app. Electron is a
framework for creating native applications with web technologies like
JavaScript, HTML, and CSS. It takes care of the hard parts so you can
focus on the core of your application.

WWW: https://electronjs.org/
2024-09-23 04:58:21 +09:00

25 lines
529 B
C

--- third_party/libsync/src/sync.c.orig 2023-10-19 19:59:52 UTC
+++ third_party/libsync/src/sync.c
@@ -17,8 +17,8 @@
*/
#include <fcntl.h>
-#include <malloc.h>
#include <stdint.h>
+#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <poll.h>
@@ -29,6 +29,12 @@
#include <sync/sync.h>
+#if defined(__OpenBSD__) || defined(__FreeBSD__)
+typedef __uint8_t __u8;
+typedef __uint32_t __u32;
+typedef __int32_t __s32;
+#define ETIME ETIMEDOUT
+#endif
struct sw_sync_create_fence_data {
__u32 value;