1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-17 00:00:40 +00:00
freebsd-ports/editors/emacs20/files/patch-ac
Peter Wemm 72383a3825 If compiling under native ncurses (instead of libcurses), we have to
use the terminfo version of tparam() since the termcap version supplies
tgoto() which seriously screws up text display.  ncurses-4.1 has both a
termcap and terminfo internal interface and is quicker with the terminfo
one even when it's read a termcap.db file.
1997-05-26 13:34:38 +00:00

30 lines
577 B
Plaintext

--- src/s/freebsd.h.orig Mon Jun 10 04:14:32 1996
+++ src/s/freebsd.h Mon May 26 21:21:55 1997
@@ -33,9 +33,16 @@
#define LIBS_DEBUG
#define LIBS_SYSTEM -lutil
-#define LIBS_TERMCAP -ltermcap
#define LIB_GCC -lgcc
+#ifdef HAVE_LIBNCURSES
+#define TERMINFO
+#define LIBS_TERMCAP -lncurses
+#else
+#define LIBS_TERMCAP -ltermcap
+#endif
+
+
#define SYSV_SYSTEM_DIR
/* freebsd has POSIX-style pgrp behavior. */
@@ -80,6 +87,8 @@
#define BSD 199103
#elif __FreeBSD__ == 2
#define BSD 199306
+#elif __FreeBSD__ == 3
+#define BSD 199506
#endif
#define WAITTYPE int