mirror of
https://github.com/janet-lang/janet
synced 2024-12-26 00:10:27 +00:00
Merge pull request #1079 from dressupgeekout/charlotte_dragonfly
Some basic fixes for DragonFly
This commit is contained in:
commit
3563f8ccdb
@ -61,4 +61,9 @@
|
|||||||
#define _NETBSD_SOURCE
|
#define _NETBSD_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Needed for several things when building with -std=c99. */
|
||||||
|
#if !__BSD_VISIBLE && defined(__DragonFly__)
|
||||||
|
#define __BSD_VISIBLE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -126,6 +126,8 @@ JANET_CORE_FN(os_which,
|
|||||||
"* :freebsd\n\n"
|
"* :freebsd\n\n"
|
||||||
"* :openbsd\n\n"
|
"* :openbsd\n\n"
|
||||||
"* :netbsd\n\n"
|
"* :netbsd\n\n"
|
||||||
|
"* :dragonfly\n\n"
|
||||||
|
"* :bsd\n\n"
|
||||||
"* :posix - A POSIX compatible system (default)\n\n"
|
"* :posix - A POSIX compatible system (default)\n\n"
|
||||||
"May also return a custom keyword specified at build time.") {
|
"May also return a custom keyword specified at build time.") {
|
||||||
janet_fixarity(argc, 0);
|
janet_fixarity(argc, 0);
|
||||||
@ -150,6 +152,8 @@ JANET_CORE_FN(os_which,
|
|||||||
return janet_ckeywordv("netbsd");
|
return janet_ckeywordv("netbsd");
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__)
|
||||||
return janet_ckeywordv("openbsd");
|
return janet_ckeywordv("openbsd");
|
||||||
|
#elif defined(__DragonFly__)
|
||||||
|
return janet_ckeywordv("dragonfly");
|
||||||
#elif defined(JANET_BSD)
|
#elif defined(JANET_BSD)
|
||||||
return janet_ckeywordv("bsd");
|
return janet_ckeywordv("bsd");
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user