blob: e0e900f5846c618200b5ca8594c0071cf38dad1f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--- third_party/libsync/src/sync.c.orig 2023-10-13 13:20:35 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;
|