cscope-15.9.patchset revision f4cca459
1From 3e88f47a94a2c00a6e47014daf8229bbb1eb910c Mon Sep 17 00:00:00 2001
2From: Jerome Duval <jerome.duval@gmail.com>
3Date: Sat, 16 Sep 2017 12:12:10 +0200
4Subject: Haiku patch
5
6
7diff --git a/configure.in b/configure.in
8index 2c16833..07383f1 100644
9--- a/configure.in
10+++ b/configure.in
11@@ -263,6 +263,9 @@ AC_DEFUN([AC_SEARCH_NCURSES], [
12 
13     AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses")
14 
15+	AC_NCURSES(/boot/system/develop/headers, ncurses.h, -lncurses,, "ncurses on /boot/system/develop/headers")
16+	AC_NCURSES(/boot/home/config/develop/headers, ncurses.h, -lncurses,, "ncurses on /boot/home/config/develop/headers")
17+
18     dnl
19     dnl We couldn't find ncurses, try SysV curses
20     dnl
21diff --git a/src/main.c b/src/main.c
22index bb15950..5164b0d 100644
23--- a/src/main.c
24+++ b/src/main.c
25@@ -126,7 +126,7 @@ static	void	usage(void);
26 void	fixkeypad();
27 #endif
28 
29-#if defined(KEY_RESIZE) && !defined(__DJGPP__)
30+#if defined(KEY_RESIZE) && !defined(__DJGPP__) && !defined(__HAIKU__)
31 void 
32 sigwinch_handler(int sig, siginfo_t *info, void *unused)
33 {
34@@ -563,7 +563,7 @@ cscope: Could not create private temp dir %s\n",
35     if (linemode == NO) {
36 	signal(SIGINT, SIG_IGN);	/* ignore interrupts */
37 
38-#if defined(KEY_RESIZE) && !defined(__DJGPP__)
39+#if defined(KEY_RESIZE) && !defined(__DJGPP__) && !defined(__HAIKU__)
40 	winch_action.sa_sigaction = sigwinch_handler;
41 	sigemptyset(&winch_action.sa_mask);
42 	winch_action.sa_flags = SA_SIGINFO;
43-- 
442.13.1
45
46