diff options
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | mrbgems/mruby-bin-mirb/mrbgem.rake | 6 | ||||
| -rw-r--r-- | src/fmt_fp.c | 2 |
3 files changed, 8 insertions, 4 deletions
@@ -46,7 +46,7 @@ We don't have mailing list, use GitHub forum <http://github.com/mruby/mruby>. ## How to compile and install (mruby and gems) -See the *doc/compile/README.md* file. +See the [doc/compile/README.md](doc/compile/README.md) file. ## Running Tests @@ -64,7 +64,7 @@ Or mruby contains a package manager called *mrbgems*. To create extensions in C and/or Ruby you should create a *GEM*. For a documentation of how to -use mrbgems consult the file *doc/mrbgems/README.md*. For example code of +use mrbgems consult the file [doc/mrbgems/README.md](doc/mrbgems/README.md). For example code of how to use mrbgems look into the folder *examples/mrbgems/*. diff --git a/mrbgems/mruby-bin-mirb/mrbgem.rake b/mrbgems/mruby-bin-mirb/mrbgem.rake index 6ddd97203..98df38499 100644 --- a/mrbgems/mruby-bin-mirb/mrbgem.rake +++ b/mrbgems/mruby-bin-mirb/mrbgem.rake @@ -12,7 +12,11 @@ MRuby::Gem::Specification.new('mruby-bin-mirb') do |spec| spec.linker.libraries << 'termcap' end end - spec.linker.libraries << 'readline' + if RUBY_PLATFORM.include?('netbsd') + spec.linker.libraries << 'edit' + else + spec.linker.libraries << 'readline' + end elsif spec.build.cc.search_header_path 'linenoise.h' spec.cc.defines << "ENABLE_LINENOISE" end diff --git a/src/fmt_fp.c b/src/fmt_fp.c index 9aeae642c..ef2f19dd5 100644 --- a/src/fmt_fp.c +++ b/src/fmt_fp.c @@ -90,7 +90,7 @@ fmt_u(uint32_t x, char *s) typedef char compiler_defines_long_double_incorrectly[9-(int)sizeof(long double)]; #endif -#if defined(__CYGWIN32__) || defined(mips) +#if defined(__CYGWIN32__) || defined(__NetBSD__) || defined(mips) static long double frexpl (long double x, int *eptr) { |
