Hi, Am 5. März 2012 23:54 schrieb Chris Hanson <c...@chris-hanson.org>: > I made this change because a user reported that the code failed to > compile in slackware when both were included. > > Is there a use case where both must be included? Or should I just > change it to prefer termcap.h over term.h? [...] I've just tried to built Scheme with include order of `term.h' and `termcap.h' in `tterm.c' reversed . This inclusion order seems to work - at least for the Linuxes (Debian testing and Arch Linux) at my disposal.
Dirk
diff -r 0372071d69cd src/microcode/tterm.c --- a/src/microcode/tterm.c Tue Mar 06 00:37:51 2012 +0100 +++ b/src/microcode/tterm.c Tue Mar 06 00:38:46 2012 +0100 @@ -51,10 +51,10 @@ macro expanding to a function call. WTF? Unix sucks. */ #undef ospeed -#if defined(HAVE_TERM_H) +#if defined(HAVE_TERMCAP_H) +# include <termcap.h> +#elif defined(HAVE_TERM_H) # include <term.h> -#elif defined(HAVE_TERMCAP_H) -# include <termcap.h> #else extern int tgetent (char *, const char *); extern int tgetnum (const char *);
_______________________________________________ MIT-Scheme-devel mailing list MIT-Scheme-devel@gnu.org https://lists.gnu.org/mailman/listinfo/mit-scheme-devel