aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-08-24 19:36:33 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-08-24 19:36:33 +0530
commit05bb9db9e17c65421a968f2f6c595ed58139dd4d (patch)
tree44cb386414f650ac2b368b8550958b547522cebc /nnn.c
parent08b5fc8231148e788040cceccfce9968acdb5c5b (diff)
downloadnnn-05bb9db9e17c65421a968f2f6c595ed58139dd4d.tar.gz
Remove extern ref to add_history()
Diffstat (limited to 'nnn.c')
-rw-r--r--nnn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nnn.c b/nnn.c
index 8a7bc98..6736df9 100644
--- a/nnn.c
+++ b/nnn.c
@@ -47,6 +47,7 @@
#include <time.h>
#include <unistd.h>
#include <wchar.h>
+#include <readline/history.h>
#include <readline/readline.h>
#ifndef __USE_XOPEN_EXTENDED
#define __USE_XOPEN_EXTENDED 1
@@ -181,11 +182,13 @@ typedef struct {
} settings;
/* Externs */
+#if 0
#ifdef __APPLE__
extern int add_history(const char *string);
#else
extern void add_history(const char *string);
#endif
+#endif
extern int wget_wch(WINDOW *win, wint_t *wch);