lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] Lynx 2.8.5 on BeOS


From: Nigel Horne
Subject: Re: [Lynx-dev] Lynx 2.8.5 on BeOS
Date: Mon, 26 Jun 2006 14:03:53 +0100
User-agent: Thunderbird 1.5.0.4 (X11/20060614)

Got it working, apart from the need to hit CR a lot as web pages load
(that may be because I still need to define SOCKET_READ in the BeOS environment).

Patches:

./WWW/Library/Implementation/HTTCP.c (line 1930):
+ #if defined(UNIX) && !defined(__BEOS__)
    if (fildes == 0) {
        /*
         *  0 can be a valid socket fd, but if it's a tty something must
         *  have gone wrong. - kw
         */
        if (isatty(fildes)) {
CTRACE((tfp, "HTDoRead - refusing to read fd 0 which is a tty!\n"));
+               SOCKET_ERRNO = EINVAL;
            return -1;
        }
    } else
#endif

./WWW/Library/Implementation/www_tcp.h (line 41):

+#ifdef  __BEOS__
+#define NETREAD(s,b,l)  recv((s),(b),(l),0)
+#define NETWRITE(s,b,l) send((s),(b),(l),0)
+#define NETCLOSE(s)     closesocket(s)
+#else
#define NETCLOSE close      /* Routine to close a TCP-IP socket         */
#define NETREAD HTDoRead /* Routine to read from a TCP-IP socket */
#define NETWRITE write      /* Routine to write to a TCP-IP socket      */
+#endif

-Nigel

Attachment: njh.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]