[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV Lynx version 2.7 compilation problem (SCO Unix)
From: |
T.E.Dickey |
Subject: |
Re: LYNX-DEV Lynx version 2.7 compilation problem (SCO Unix) |
Date: |
Sun, 23 Feb 1997 17:04:41 -0500 (EST) |
> "T.E.Dickey" <address@hidden> wrote:
> >> It the meantime, nothing will work short of finding all
> >> the remove() calls in the LYFoo and libwww modules, and replacing
> >> them with unlink(). No macros, as Wayne suggested to you, will
> >> work, because the problem lies in the ultimate translation to
> >> invoke unlink() on Unix.
> >>
> >> What I did when the problem was common was to use:
> >>
> >> #ifdef SCO
> >> ... unlink(...) ...
> >> #else
> >> ... remove(...) ...
> >> #endif /* SCO */
> >it's in my configure script (I'd thought that was for VMS, which has
> >no unlink(), but it should work for *NIX systems as well.
>
> The objective, at least during the years when I was coordinating
> Lynx development, has been to use platform-independent, portable C code
> as consistently as possible. remove() was long ago designated as the
> portable function name, so Lynx uses that instead of the Unix unlink()
> or VMS delete(). Similarly, Lynx uses strchr() instead of index(),
> memcpy() instead of bcopy(), memset() instead of bzero(), etc., etc.
>
> That's why, aside from memory requirements, and the TCPIP and file
> system issues, it in theory should be able to compile and actually work on
> non-Unix PC systems.
you'd save some time if you actually read my proposed change. The configure
script checks if 'remove' is found in the library, and if not, #define's
it to 'unlink'.
--
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;
- Re: LYNX-DEV Lynx version 2.7 compilation problem (SCO Unix), (continued)
- Re: LYNX-DEV Lynx version 2.7 compilation problem (SCO Unix), Foteos Macrides, 1997/02/22
- Re: LYNX-DEV Lynx version 2.7 compilation problem (SCO Unix), Bela Lubkin, 1997/02/23
- Re: LYNX-DEV Lynx version 2.7 compilation problem (SCO Unix), Bela Lubkin, 1997/02/23
- Re: LYNX-DEV Lynx version 2.7 compilation problem (SCO Unix), Foteos Macrides, 1997/02/23
- Re: LYNX-DEV Lynx version 2.7 compilation problem (SCO Unix),
T.E.Dickey <=
- LYNX-DEV <A href="/dev/tty">, Alan Cox, 1997/02/24
- Re: LYNX-DEV Lynx version 2.7 compilation problem (SCO Unix), Foteos Macrides, 1997/02/23
- Re: LYNX-DEV Lynx version 2.7 compilation problem (SCO Unix), Brian Tillman, x8425, 1997/02/24