While compiling the last Lynx using djgpp 2.04 and gcc 4.8.4,
I'm getting:

LYForms.c: In function 'form_getstr':
LYForms.c:424:36: error: 'FieldEditor' has no member named 'efWide'
      if (!(edit->efBufInUse >= edit->efWide &&
                                    ^
LYForms.c:425:22: error: 'FieldEditor' has no member named 'efWide'
     LastTFPos >= edit->efWide - edit->efPanMargin)) {
                      ^
LYForms.c:427:31: error: 'FieldEditor' has no member named 'efWide'
   if (edit->efBufInUse >= edit->efWide)

Presumably 'efWide' should be 'efWidth'?

But there's more:

LYMail.c: In function 'LYSendMailFile':
LYMail.c:537:13: error: conflicting types for 'dj_is_bash'
  extern int dj_is_bash;
             ^
In file included from LYMail.c:6:0:
./LYGlobalDefs.h:649:20: note: previous declaration of 'dj_is_bash' was here
     extern BOOLEAN dj_is_bash;

Hence:

--- orig/src/LYMail.c       2013-11-29 01:52:56 +0000
+++ src/LYMail.c     2014-12-30 15:53:56 +0000
@@ -534,7 +534,6 @@
 #endif
 #ifdef __DJGPP__
     if (LYGetEnv("SHELL")) {
-       extern int dj_is_bash;
        extern char *shell;
        const char *c_option;
        const char *format = "%s %s %s -t %s -F %s";

-----------

Also a problem WRT. 'USE_DOS_DRIVES' in HomeEnv().
The function w32_get_shell_folder() is for Win32 only:

--- orig/src/LYUtils.c      2014-12-22 02:39:40 +0000
+++ src/LYUtils.c    2014-12-30 16:04:16 +0000
@@ -5183,7 +5183,7 @@
 {
     char *result = CheckDir(LYGetEnv("HOME"));

-#if defined (USE_DOS_DRIVES)
+#if defined (USE_DOS_DRIVES) && defined(_WIN32)
     if (result == 0) {
        char *head;
        char *leaf;

----------

After these changes, the djgpp/Watt-32 version of Lynx works
fine. I'm amazed!

--
--gv

_______________________________________________
Lynx-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to