mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix build failure
This commit is contained in:
parent
2f40eb5efc
commit
08b5fc8231
10
nnn.c
10
nnn.c
|
@ -17,6 +17,15 @@
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#ifdef __linux__ /* Fix failure due to mvaddnwstr() */
|
||||||
|
#ifndef NCURSES_WIDECHAR
|
||||||
|
#define NCURSES_WIDECHAR 1
|
||||||
|
#endif
|
||||||
|
#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
|
||||||
|
#ifndef _XOPEN_SOURCE_EXTENDED
|
||||||
|
#define _XOPEN_SOURCE_EXTENDED
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -39,7 +48,6 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
#include <readline/readline.h>
|
#include <readline/readline.h>
|
||||||
|
|
||||||
#ifndef __USE_XOPEN_EXTENDED
|
#ifndef __USE_XOPEN_EXTENDED
|
||||||
#define __USE_XOPEN_EXTENDED 1
|
#define __USE_XOPEN_EXTENDED 1
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue