46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
From 3e88f47a94a2c00a6e47014daf8229bbb1eb910c Mon Sep 17 00:00:00 2001
|
|
From: Jerome Duval <jerome.duval@gmail.com>
|
|
Date: Sat, 16 Sep 2017 12:12:10 +0200
|
|
Subject: Haiku patch
|
|
|
|
|
|
diff --git a/configure.in b/configure.in
|
|
index 2c16833..07383f1 100644
|
|
--- a/configure.in
|
|
+++ b/configure.in
|
|
@@ -263,6 +263,9 @@ AC_DEFUN([AC_SEARCH_NCURSES], [
|
|
|
|
AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses")
|
|
|
|
+ AC_NCURSES(/boot/system/develop/headers, ncurses.h, -lncurses,, "ncurses on /boot/system/develop/headers")
|
|
+ AC_NCURSES(/boot/home/config/develop/headers, ncurses.h, -lncurses,, "ncurses on /boot/home/config/develop/headers")
|
|
+
|
|
dnl
|
|
dnl We couldn't find ncurses, try SysV curses
|
|
dnl
|
|
diff --git a/src/main.c b/src/main.c
|
|
index bb15950..5164b0d 100644
|
|
--- a/src/main.c
|
|
+++ b/src/main.c
|
|
@@ -126,7 +126,7 @@ static void usage(void);
|
|
void fixkeypad();
|
|
#endif
|
|
|
|
-#if defined(KEY_RESIZE) && !defined(__DJGPP__)
|
|
+#if defined(KEY_RESIZE) && !defined(__DJGPP__) && !defined(__HAIKU__)
|
|
void
|
|
sigwinch_handler(int sig, siginfo_t *info, void *unused)
|
|
{
|
|
@@ -563,7 +563,7 @@ cscope: Could not create private temp dir %s\n",
|
|
if (linemode == NO) {
|
|
signal(SIGINT, SIG_IGN); /* ignore interrupts */
|
|
|
|
-#if defined(KEY_RESIZE) && !defined(__DJGPP__)
|
|
+#if defined(KEY_RESIZE) && !defined(__DJGPP__) && !defined(__HAIKU__)
|
|
winch_action.sa_sigaction = sigwinch_handler;
|
|
sigemptyset(&winch_action.sa_mask);
|
|
winch_action.sa_flags = SA_SIGINFO;
|
|
--
|
|
2.13.1
|
|
|