mirror of
https://git.freebsd.org/ports.git
synced 2025-07-05 03:19:18 -04:00
Approved by: rene (mentor) Security: https://vuxml.freebsd.org/freebsd/310ca30e-a951-11ed-8314-a8a1599412c6.html
25 lines
524 B
C
25 lines
524 B
C
--- third_party/libsync/src/sync.c.orig 2023-02-08 09:03:45 UTC
|
|
+++ third_party/libsync/src/sync.c
|
|
@@ -17,7 +17,9 @@
|
|
*/
|
|
|
|
#include <fcntl.h>
|
|
+#if !defined(__OpenBSD__)
|
|
#include <malloc.h>
|
|
+#endif
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
@@ -29,6 +31,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;
|