File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 61
61
#define _NETBSD_SOURCE
62
62
#endif
63
63
64
+ /* Needed for several things when building with -std=c99. */
65
+ #if !__BSD_VISIBLE && defined(__DragonFly__ )
66
+ #define __BSD_VISIBLE 1
67
+ #endif
68
+
64
69
#endif
Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ JANET_CORE_FN(os_which,
126
126
"* :freebsd\n\n"
127
127
"* :openbsd\n\n"
128
128
"* :netbsd\n\n"
129
+ "* :dragonfly\n\n"
130
+ "* :bsd\n\n"
129
131
"* :posix - A POSIX compatible system (default)\n\n"
130
132
"May also return a custom keyword specified at build time." ) {
131
133
janet_fixarity (argc , 0 );
@@ -150,6 +152,8 @@ JANET_CORE_FN(os_which,
150
152
return janet_ckeywordv ("netbsd" );
151
153
#elif defined(__OpenBSD__ )
152
154
return janet_ckeywordv ("openbsd" );
155
+ #elif defined(__DragonFly__ )
156
+ return janet_ckeywordv ("dragonfly" );
153
157
#elif defined(JANET_BSD )
154
158
return janet_ckeywordv ("bsd" );
155
159
#else
You can’t perform that action at this time.
0 commit comments