]> Sergey Matveev's repositories - nnn.git/commit
Fix build (and more) on SmartOS (#363)
authorSijmen J. Mulder <ik@sjmulder.nl>
Wed, 16 Oct 2019 01:37:45 +0000 (03:37 +0200)
committerMischievous Meerkat <engineerarun@gmail.com>
Wed, 16 Oct 2019 01:37:45 +0000 (07:07 +0530)
commit3953639c5d8e44a2ff8140fd3067db866df11d08
treeefe78f6778d275ed6c582dcede19856db1be075b
parent98042ad7d07dfa4f7d03d3f7b43bbd72cf3a05c6
Fix build (and more) on SmartOS (#363)

* Define _XOPEN_SOURCE_EXTENDED on SmartOS

Enables wide ncurses.

* SmartOS has alloca() in alloca.h

* SmartOS does not have sig_t

* dprintf() is not available on SmartOS

So replace its usage with fprintf.

* SmartOS has no d_type

* SmartOS has no CLOCK_MONOTONIC_RAW

* SmartOS has no O_DIRECTORY

* Work around SmartOS not having mime detection

* Missing comma
src/nnn.c