On 2001-05-26 13:35 +0200, Hrvoje Niksic wrote:
> The pre-release is available at:
>
> ftp://gnjilux.srk.fer.hr/pub/unix/util/wget/.betas/wget-1.7-pre1.tar.gz
Tried it on NCR MP-RAS 3.0 :
- The CC "-cX" problem in wget 1.6 is fixed. Good. :-)
- The empty LIBS problem remains (add -lsocket -lnsl).
- utils.c doesn't compile because MAP_FAILED is not defined in
the system headers, so :
diff -rc wget-1.7-pre1/src/utils.c wget-1.7-pre1_aym/src/utils.c
*** wget-1.7-pre1/src/utils.c Sat May 12 15:06:41 2001
--- wget-1.7-pre1_aym/src/utils.c Fri Jun 1 13:46:34 2001
***************
*** 976,983 ****
efficiency, but at some cost to generality. */
fm->content = mmap (NULL, fm->length, PROT_READ | PROT_WRITE,
MAP_PRIVATE, fd, 0);
! if (fm->content == (char *)MAP_FAILED)
! goto mmap_lose;
if (!inhibit_close)
close (fd);
--- 976,990 ----
efficiency, but at some cost to generality. */
fm->content = mmap (NULL, fm->length, PROT_READ | PROT_WRITE,
MAP_PRIVATE, fd, 0);
! {
! #ifdef MAP_FAILED
! const char *const fail = (char *)MAP_FAILED;
! #else
! const char *const fail = (char *)-1;
! #endif
! if (fm->content == fail)
! goto mmap_lose;
! }
if (!inhibit_close)
close (fd);
Otherwise, it seems to work (passes a few simple tests).
--
André Majorel
Work: <[EMAIL PROTECTED]>
Home: <[EMAIL PROTECTED]> http://www.teaser.fr/~amajorel/