aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authornia <nia@netbsd.org>2020-07-27 00:17:22 +0100
committernia <nia@netbsd.org>2020-07-27 00:21:15 +0100
commitb731f6ab033d50878d1e77541b13ccfe8fc4052f (patch)
treed9746d802c23e7e51341ab7a203d551d158787f7 /README.md
parentPrepare for 1.11.1 release. (diff)
Fix build on NetBSD.
The NetBSD C library's headers do not expose extensions when compiling with -std=c99 (as opposed to -std=gnu99 or no -std= option), so define _NETBSD_SOURCE to get timegm, and functions that would otherwise require an _XOPEN_SOURCE definition, e.g. realpath. Note that, as with FreeBSD, you need gmake to compile janet on NetBSD, and can also install it from packages.
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 55b4fe71..7ae129b0 100644
--- a/README.md
+++ b/README.md
@@ -115,6 +115,11 @@ gmake test
gmake repl
```
+### NetBSD
+
+NetBSD build instructions are the same as the FreeBSD build instuctions.
+Alternatively, install directly from packages, using `pkgin install janet`.
+
### Windows
1. Install [Visual Studio](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=15#) or [Visual Studio Build Tools](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15#)