freebsd-ports/devel/cscope/files/patch-aa
Peter Pentchev 7695192533 Fix handling of the arrow keys.
PR:		29491
Submitted by:	"Alexander N. Kabaev" <ak03@gte.com>
Approved by:	maintainer
2001-08-21 15:05:11 +00:00

21 lines
625 B
Plaintext

--- src/constants.h.orig Fri Jun 1 08:43:24 2001
+++ src/constants.h Mon Aug 6 22:35:45 2001
@@ -43,7 +43,7 @@
/* database output macros that update its offset */
#define dbputc(c) (++dboffset, (void) putc(c, newrefs))
-#if Linux || BSD && !sun
+#if Linux || __FreeBSD__ || BSD && !sun
#define dbfputs(s) (dboffset += strlen(s), fputs(s, newrefs))
#else
#define dbfputs(s) (dboffset += fputs(s, newrefs))
@@ -98,7 +98,7 @@
#define INCLUDES 8
#define FIELDS 9
-#if (BSD || V9) && !__NetBSD__
+#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__
#define TERMINFO 0 /* no terminfo curses */
#else
#define TERMINFO 1