Import slang-1.4.9 patch
Nerijus Baliunas
nerijus at users.sourceforge.net
Mon Oct 25 13:58:12 UTC 2004
On Mon, 25 Oct 2004 15:41:35 +0300 (EEST) Nerijus Baliunas <nerijus at users.sourceforge.net> wrote:
> Yes, it helps, thanks you! slang compiles w/o warnings.
But I get error when linking mc:
ld: 0711-317 ERROR: Undefined symbol: .SLtt_get_terminfo
ld: 0711-317 ERROR: Undefined symbol: .SLtt_tgetstr
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
It's because SLtt_get_terminfo() and SLtt_tgetstr() are defined in
sldisply.c only if #ifdef __unix__. So the following patch is better:
--- slang.h.orig Mon Oct 25 14:34:19 2004
+++ slang.h Mon Oct 25 16:46:14 2004
@@ -24,7 +24,7 @@
# endif
#endif /* __watcomc__ */
-#if defined(unix) || defined(__unix)
+#if defined(unix) || defined(__unix) || defined (_AIX)
# ifndef __unix__
# define __unix__ 1
# endif
But please add some comment so that it isn't removed after
next slang update in the future.
Regards,
Nerijus
More information about the mc-devel
mailing list