delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/12/17/06:25:20

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: Lynx2-5 patch for cygwin.
17 Dec 1996 06:25:20 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <01BBEC35.75F47F00.cygnus.gnu-win32@bbs.prospect.com.ru>
Original-To: "'Gnu-Win32'" <gnu-win32 AT cygnus DOT com>
Original-Cc: "'Geoffrey Noer'" <noer AT cygnus DOT com>
Encoding: 190 TEXT
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Hi!

This patch allows to compile and run lynx2-5 with cygwin.dll. WARNING: Lynx 
requires /bin/cp to save downloaded files.

diff -cr lynx2-5.orig/Makefile lynx2-5/Makefile
*** 
lynx2-5.orig/Makefile	Thu Jan 01 03:03:19 1970
--- lynx2-5/Makefile	Tue Dec 
17 15:40:04 1996
***************
*** 109,115 ****
  # or modified at run 
time via DIRED_MENU symbols in lynx.cfg.
  #
  # To disable DirEd 
completely, prepend "#" to this line:
! DIRED_SUPPORT     = 
  -DDIRED_SUPPORT
  #(If you have disabled DirEd completely, you can ignore 
all the
  #other DirEd stuff here.)
  #
--- 109,115 ----
  # or modified at 
run time via DIRED_MENU symbols in lynx.cfg.
  #
  # To disable DirEd 
completely, prepend "#" to this line:
! DIRED_SUPPORT     = 
  -DDIRED_SUPPORT -DUSE_DIRENT -DUNIX -DNO_GROUPS
  #(If you have disabled 
DirEd completely, you can ignore all the
  #other DirEd stuff here.)
 
 #
***************
*** 772,778 ****
  	rm -f WWW/Library/*/*.[aob]
  	rm -f 
WWW/Library/*/.created
  	cd src; make clean
! 	rm -f *.b src/lynx core 
Lynx.leaks
  
  tar:  clean
  	rm -f lynx
--- 772,778 ----
  	rm -f 
WWW/Library/*/*.[aob]
  	rm -f WWW/Library/*/.created
  	cd src; make 
clean
! 	rm -f *.b src/lynx.exe core Lynx.leaks
  
  tar:  clean
  	rm -f 
lynx
***************
*** 798,805 ****
  	cd ..; rm -f $(lynxdir).tar.Z; 
compress -f -v $(lynxdir).tar
  
  install:
! 	-mv -f $(exec)/lynx 
$(exec)/lynx.old
  	-mv -f $(cfg)/lynx.cfg $(cfg)/lynx.oldcfg
! 
	$(installbin) lynx $(exec)/lynx
  	$(installdoc) lynx.man $(doc)/lynx.1
 
 	$(installdoc) lynx.cfg $(cfg)/lynx.cfg
--- 798,805 ----
  	cd ..; rm -f 
$(lynxdir).tar.Z; compress -f -v $(lynxdir).tar
  
  install:
! 	-mv -f 
$(exec)/lynx.exe $(exec)/lynx.old
  	-mv -f $(cfg)/lynx.cfg 
$(cfg)/lynx.oldcfg
! 	$(installbin) lynx.exe $(exec)/lynx.exe
 
 	$(installdoc) lynx.man $(doc)/lynx.1
  	$(installdoc) lynx.cfg 
$(cfg)/lynx.cfg
diff -cr lynx2-5.orig/WWW/Library/Implementation/HTTCP.c 
lynx2-5/WWW/Library/Implementation/HTTCP.c
*** lynx2-5.orig/WWW/Library/  
Implementation/HTTCP.c	Thu Jan 01 02:56:30 1970
--- 
lynx2-5/WWW/Library/Implementation/HTTCP.c	Tue Dec 17 13:45:04 
1996
***************
*** 635,641 ****
     *                         the 
normal case.
     */
    if (((SOCKET_ERRNO == EINPROGRESS)
! #if 
defined(SVR4) || defined(DGUX)
         || (SOCKET_ERRNO == EAGAIN)
 
 #endif
         ) && (status < 0))
--- 635,641 ----
     * 
                        the normal case.
     */
    if (((SOCKET_ERRNO == 
EINPROGRESS)
! #if defined(SVR4) || defined(DGUX) ||defined (__CYGWIN32__)
 
        || (SOCKET_ERRNO == EAGAIN)
  #endif
         ) && (status < 
0))
diff -cr lynx2-5.orig/src/Makefile lynx2-5/src/Makefile
*** 
lynx2-5.orig/src/Makefile	Thu Jan 01 02:57:57 1970
--- 
lynx2-5/src/Makefile	Tue Dec 17 15:40:45 1996
***************
*** 9,21 
****
  
  CFLAGS= $(MCFLAGS) -I.. $(SLANGINC)
  
! all: lynx
  
! lynx: 
  message $(OBJS) $(WWWLIB)
  	@echo "Linking and creating Lynx 
executable"
  	$(CC) $(CFLAGS) -o lynx  $(OBJS) $(WWWLIB) $(SLANGLIB) 
$(LIBS)
  	@echo "Copying Lynx executable into this directory"
! 	cp lynx 
...
  	@echo "Welcome to Lynx!"
  
  message:
--- 9,21 ----
  
  CFLAGS= 
$(MCFLAGS) -I.. $(SLANGINC)
  
! all: lynx.exe
  
! lynx.exe:   message 
$(OBJS) $(WWWLIB)
  	@echo "Linking and creating Lynx executable"
  	$(CC) 
$(CFLAGS) -o lynx  $(OBJS) $(WWWLIB) $(SLANGLIB) $(LIBS)
  	@echo "Copying 
Lynx executable into this directory"
! 	cp lynx.exe ..
  	@echo "Welcome to 
Lynx!"
  
  message:
***************
*** 29,35 ****
  	lint *.c  > 
.../lint.out
  
  clean:
! 	rm -f lynx core *.[ob]
  
  LYMain.o: 
.../userdefs.h
  LYMainLoop.o: ../userdefs.h
--- 29,35 ----
  	lint *.c  > 
.../lint.out
  
  clean:
! 	rm -f lynx.exe core *.[ob]
  
  LYMain.o: 
.../userdefs.h
  LYMainLoop.o: ../userdefs.h


After applying this patch cd to lynx2-5 directory and run "make generic; 
make install".


Sergey Okhapkin
Moscow, Russia

-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019