> New pre-release if available at ftp://lftp.yar.ru/lftp/devel/.

Compilation errors given below occur while compilng
lftp-pre2.6.0-20020731 on IRIX 6.5.15f with MIPSpro Compilers 7.3.1.3m.

% CC -DHAVE_CONFIG_H -I. -I../include -I/usr/local/include \
-O2 -OPT:Olimit=0 -LANG:ansi-for-init-scope=ON \
-c -o misc.o `test -f 'misc.cc' || echo './'`misc.cc

cc-1020 CC: ERROR File = /usr/include/term.h, Line = 1039
  The identifier "SGTTY" is undefined.

        SGTTY Ottyb,            /* original state of the terminal */
        ^
cc-1020 CC: ERROR File = /usr/include/term.h, Line = 1058
  The identifier "chtype" is undefined.

        chtype sgr_mode;                /* current phys. graphic rendition */
        ^
.....

<curses.h> should be included before <term.h> on IRIX.

--- lftp-pre2.6.0-20020731/src/misc.cc.orig     2002-07-25 16:40:03.000000000 +0900
+++ lftp-pre2.6.0-20020731/src/misc.cc  2002-07-31 23:39:02.410922680 +0900
@@ -786,18 +786,18 @@
    return ret;
 }
 
-#if defined(HAVE_TERM_H)
-#include <term.h>
-#elif defined(HAVE_NCURSES_TERM_H)
-#include <ncurses/term.h>
-#endif
-
 #if defined(HAVE_CURSES_H)
 #include <curses.h>
 #elif defined(HAVE_NCURSES_CURSES_H)
 #include <ncurses/curses.h>
 #endif
 
+#if defined(HAVE_TERM_H)
+#include <term.h>
+#elif defined(HAVE_NCURSES_TERM_H)
+#include <ncurses/term.h>
+#endif
+
 #if defined(HAVE_TIGETSTR)
 static bool terminfo_ok = true;
 static void init_terminfo()

-- ayamura
Ayamura KIKUCHI, M.D., Ph.D.

Reply via email to