blob: 4f157896a324f77e2f031c40db6f7a83cd0504bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-deps_uvwasi_include_wasi__serdes.h,v 1.1 2022/03/30 06:51:30 adam Exp $
NetBSD<9 used to have #define uint8_t etc. which caused issues with complicated
defines like this one.
--- deps/uvwasi/include/wasi_serdes.h.orig 2020-08-11 14:32:04.000000000 +0000
+++ deps/uvwasi/include/wasi_serdes.h
@@ -3,6 +3,13 @@
#include "wasi_types.h"
+#ifdef __NetBSD__
+#undef uint8_t
+#undef uint16_t
+#undef uint32_t
+#undef uint64_t
+#endif
+
/* Basic uint{8,16,32,64}_t read/write functions. */
#define BASIC_TYPE(name, type) \
|