Trying again, this time without my mail program rewrapping lines, I 
hope. Fooy on programs where "normal" behaviour is not do-what-I-say!

diff --unified --recursive tn5250-0.17.5_orig/curses/cursesterm.h tn5250-0.17.5/curses/cursesterm.h
--- tn5250-0.17.5_orig/curses/cursesterm.h 2008-11-21 17:33:18.000000000 -0500
+++ tn5250-0.17.5/curses/cursesterm.h 2017-08-31 09:42:16.671590399 -0400
@@ -35,6 +35,7 @@
 #ifdef HAVE_TERMCAP_H
 #include <termcap.h>
 #endif
+#include <term.h>
 #include "cursesterm.h"
 #endif
 
diff --unified --recursive tn5250-0.17.5_orig/curses/tn5250.c tn5250-0.17.5/curses/tn5250.c
--- tn5250-0.17.5_orig/curses/tn5250.c 2008-11-21 17:33:18.000000000 -0500
+++ tn5250-0.17.5/curses/tn5250.c 2017-08-31 09:36:12.773247650 -0400
@@ -19,6 +19,7 @@
  */
 
 #include "tn5250-private.h"
+#include "cursesterm.h"
 
 Tn5250Session *sess = NULL;
 Tn5250Stream *stream = NULL;
diff --unified --recursive tn5250-0.17.5_orig/lib5250/scs.c tn5250-0.17.5/lib5250/scs.c
--- tn5250-0.17.5_orig/lib5250/scs.c 2009-10-12 19:30:04.000000000 -0400
+++ tn5250-0.17.5/lib5250/scs.c 2017-08-31 09:37:33.496432521 -0400
@@ -29,78 +29,6 @@
 #define VERBOSE
 */
 
-
-/* Device control */
-void scs_sic (Tn5250SCS * This);
-void scs_sea (Tn5250SCS * This);
-void scs_noop (Tn5250SCS * This);
-void scs_rpt (Tn5250SCS * This);
-void scs_sw (Tn5250SCS * This);
-void scs_transparent (Tn5250SCS * This);
-void scs_bel (Tn5250SCS * This);
-void scs_spsu (Tn5250SCS * This);
-
-/* Page control */
-void scs_ppm (Tn5250SCS * This);
-void scs_spps (Tn5250SCS * This);
-void scs_shf (Tn5250SCS * This);
-void scs_svf (Tn5250SCS * This);
-void scs_ff (Tn5250SCS * This);
-void scs_rff (Tn5250SCS * This);
-void scs_sto (Tn5250SCS * This);
-void scs_shm (Tn5250SCS * This);
-void scs_svm (Tn5250SCS * This);
-void scs_sffc (Tn5250SCS * This);
-
-/* Font controls */
-void scs_scgl (Tn5250SCS * This);
-void scs_scg (Tn5250SCS * This);
-void scs_sfg (Tn5250SCS * This);
-void scs_scd (Tn5250SCS * This);
-
-/* Cursor control */
-void scs_pp (Tn5250SCS * This);
-void scs_rdpp (Tn5250SCS * This);
-void scs_ahpp (Tn5250SCS * This);
-void scs_avpp (Tn5250SCS * This);
-void scs_rrpp (Tn5250SCS * This);
-void scs_sbs (Tn5250SCS * This);
-void scs_sps (Tn5250SCS * This);
-void scs_nl (Tn5250SCS * This);
-void scs_irs (Tn5250SCS * This);
-void scs_rnl (Tn5250SCS * This);
-void scs_irt (Tn5250SCS * This);
-void scs_stab (Tn5250SCS * This);
-void scs_ht (Tn5250SCS * This);
-void scs_it (Tn5250SCS * This);
-void scs_sil (Tn5250SCS * This);
-void scs_lf (Tn5250SCS * This);
-void scs_cr (Tn5250SCS * This);
-void scs_ssld (Tn5250SCS * This);
-void scs_sld (Tn5250SCS * This);
-void scs_sls (Tn5250SCS * This);
-
-/* Generation controls */
-void scs_sgea (Tn5250SCS * This);
-
-void scs_process2b (Tn5250SCS * This);
-void scs_processd2 (Tn5250SCS * This);
-void scs_process03 (unsigned char nextchar, unsigned char curchar);
-void scs_scs (int *cpi);
-void scs_process04 (Tn5250SCS * This, unsigned char nextchar,
-     unsigned char curchar);
-void scs_processd1 (Tn5250SCS * This);
-void scs_process06 ();
-void scs_process07 (Tn5250SCS * This);
-void scs_processd103 (Tn5250SCS * This);
-void scs_jtf (unsigned char curchar);
-void scs_sjm (unsigned char curchar);
-void scs_processd3 (Tn5250SCS * This);
-void scs_setfont (Tn5250SCS * This);
-void scs_main (Tn5250SCS * This);
-void scs_init (Tn5250SCS * This);
-void scs_default (Tn5250SCS * This);
-
 static void scs_log(const char *msg, ...);
 
 /* Set Initial Conditions (SIC).  This is part of Device Control.  SIC
diff --unified --recursive tn5250-0.17.5_orig/lib5250/scs.h tn5250-0.17.5/lib5250/scs.h
--- tn5250-0.17.5_orig/lib5250/scs.h 2009-10-12 19:30:08.000000000 -0400
+++ tn5250-0.17.5/lib5250/scs.h 2017-08-31 09:37:28.964253766 -0400
@@ -135,3 +135,74 @@
 
 
 Tn5250SCS *tn5250_scs_new ();
+
+/* Device control */
+void scs_sic (Tn5250SCS * This);
+void scs_sea (Tn5250SCS * This);
+void scs_noop (Tn5250SCS * This);
+void scs_rpt (Tn5250SCS * This);
+void scs_sw (Tn5250SCS * This);
+void scs_transparent (Tn5250SCS * This);
+void scs_bel (Tn5250SCS * This);
+void scs_spsu (Tn5250SCS * This);
+
+/* Page control */
+void scs_ppm (Tn5250SCS * This);
+void scs_spps (Tn5250SCS * This);
+void scs_shf (Tn5250SCS * This);
+void scs_svf (Tn5250SCS * This);
+void scs_ff (Tn5250SCS * This);
+void scs_rff (Tn5250SCS * This);
+void scs_sto (Tn5250SCS * This);
+void scs_shm (Tn5250SCS * This);
+void scs_svm (Tn5250SCS * This);
+void scs_sffc (Tn5250SCS * This);
+
+/* Font controls */
+void scs_scgl (Tn5250SCS * This);
+void scs_scg (Tn5250SCS * This);
+void scs_sfg (Tn5250SCS * This);
+void scs_scd (Tn5250SCS * This);
+
+/* Cursor control */
+void scs_pp (Tn5250SCS * This);
+void scs_rdpp (Tn5250SCS * This);
+void scs_ahpp (Tn5250SCS * This);
+void scs_avpp (Tn5250SCS * This);
+void scs_rrpp (Tn5250SCS * This);
+void scs_sbs (Tn5250SCS * This);
+void scs_sps (Tn5250SCS * This);
+void scs_nl (Tn5250SCS * This);
+void scs_irs (Tn5250SCS * This);
+void scs_rnl (Tn5250SCS * This);
+void scs_irt (Tn5250SCS * This);
+void scs_stab (Tn5250SCS * This);
+void scs_ht (Tn5250SCS * This);
+void scs_it (Tn5250SCS * This);
+void scs_sil (Tn5250SCS * This);
+void scs_lf (Tn5250SCS * This);
+void scs_cr (Tn5250SCS * This);
+void scs_ssld (Tn5250SCS * This);
+void scs_sld (Tn5250SCS * This);
+void scs_sls (Tn5250SCS * This);
+
+/* Generation controls */
+void scs_sgea (Tn5250SCS * This);
+
+void scs_process2b (Tn5250SCS * This);
+void scs_processd2 (Tn5250SCS * This);
+void scs_process03 (unsigned char nextchar, unsigned char curchar);
+void scs_scs (int *cpi);
+void scs_process04 (Tn5250SCS * This, unsigned char nextchar,
+     unsigned char curchar);
+void scs_processd1 (Tn5250SCS * This);
+void scs_process06 ();
+void scs_process07 (Tn5250SCS * This);
+void scs_processd103 (Tn5250SCS * This);
+void scs_jtf (unsigned char curchar);
+void scs_sjm (unsigned char curchar);
+void scs_processd3 (Tn5250SCS * This);
+void scs_setfont (Tn5250SCS * This);
+void scs_main (Tn5250SCS * This);
+void scs_init (Tn5250SCS * This);
+void scs_default (Tn5250SCS * This);
diff --unified --recursive tn5250-0.17.5_orig/lib5250/telnetstr.c tn5250-0.17.5/lib5250/telnetstr.c
--- tn5250-0.17.5_orig/lib5250/telnetstr.c 2010-05-14 04:01:52.000000000 -0400
+++ tn5250-0.17.5/lib5250/telnetstr.c 2017-08-31 09:33:31.982896105 -0400
@@ -164,7 +164,7 @@
  #define TNSB_LOG log_SB_buf
  #define LOGERROR logError
 
-static char *getTelOpt(what)
+static char *getTelOpt(int what)
 {
    char *wcp;
    static char wbuf[12];
diff --unified --recursive tn5250-0.17.5_orig/lib5250/utility.c tn5250-0.17.5/lib5250/utility.c
--- tn5250-0.17.5_orig/lib5250/utility.c 2008-11-21 17:33:27.000000000 -0500
+++ tn5250-0.17.5/lib5250/utility.c 2017-08-31 09:34:43.821735293 -0400
@@ -19,6 +19,7 @@
  * Boston, MA 02111-1307 USA
  * 
  */
+#include <sys/stat.h>
 #include "tn5250-private.h"
 #include "transmaps.h"
 

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].