We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60b76c7 commit 5311904Copy full SHA for 5311904
lib/src/portable/endian.h
@@ -18,16 +18,20 @@
18
#if defined(HAVE_ENDIAN_H) || \
19
defined(__linux__) || \
20
defined(__GNU__) || \
21
+ defined(__NetBSD__) || \
22
defined(__OpenBSD__) || \
23
defined(__CYGWIN__) || \
24
defined(__MSYS__) || \
25
defined(__EMSCRIPTEN__)
26
27
+#if defined(__NetBSD__)
28
+#define _NETBSD_SOURCE 1
29
+#endif
30
+
31
# include <endian.h>
32
33
#elif defined(HAVE_SYS_ENDIAN_H) || \
34
defined(__FreeBSD__) || \
- defined(__NetBSD__) || \
35
defined(__DragonFly__)
36
37
# include <sys/endian.h>
lib/src/query.c
@@ -1,3 +1,7 @@
1
+#if defined(__NetBSD__) && defined(_POSIX_C_SOURCE)
2
+#undef _POSIX_C_SOURCE
3
4
5
#include "tree_sitter/api.h"
6
#include "./alloc.h"
7
#include "./array.h"
0 commit comments