###############################################################################
#
# File:         ncftp-1.9.3.patch
# RCS:          $Header: $
# Description:  compile ncftp with readline and curses
# Author:       Christian Limpach <chris@nice.ch>
# Created:      Tue Apr  4 02:31:38 1995
# Modified:     Tue Apr  4 02:32:49 1995 (Christian Limpach) chris@nice.ch
# Language:     patch
# Package:      N/A
# Status:       Experimental (Do Not Distribute)
#
# (C) Copyright 1995, Christian Limpach, all rights reserved.
# This is free software, and you are welcome to redistribute it
# under certain conditions; see ftp://nice.ethz.ch/users/chris/TERMS
# for details. This software comes with ABSOLUTELY NO WARRANTY.
#
###############################################################################

diff -rc /tmp/ncftp-1.9.3/Makefile ncftp-1.9.3/Makefile
*** /tmp/ncftp-1.9.3/Makefile	Fri Mar 17 06:50:37 1995
--- ncftp-1.9.3/Makefile	Tue Apr  4 02:17:12 1995
***************
*** 13,19 ****
  
  # Program definitions.  See the README, part C.
  #--------------------------------------------------------------------------
! PDEFS =
  #PDEFS = -DGETLINE
  #PDEFS = -DREADLINE -DCURSES
  #PDEFS = -DSOCKS
--- 13,19 ----
  
  # Program definitions.  See the README, part C.
  #--------------------------------------------------------------------------
! PDEFS = -DGZCAT=\"/usr/local/bin/zcat\" -DCURSES -DNO_TIPS -DTRY_ABOR -DREADLINE
  #PDEFS = -DGETLINE
  #PDEFS = -DREADLINE -DCURSES
  #PDEFS = -DSOCKS
***************
*** 24,31 ****
  # Choose your compiler and flags below.  Make sure you use an ANSI compiler
  # that handles new style function declarations and prototypes (gcc should).
  #--------------------------------------------------------------------------
! CC = cc
! #CC = gcc
  
  #CFLAGS = $(TERM_INC) -O
  CFLAGS = $(TERM_INC) -O2
--- 24,31 ----
  # Choose your compiler and flags below.  Make sure you use an ANSI compiler
  # that handles new style function declarations and prototypes (gcc should).
  #--------------------------------------------------------------------------
! #CC = cc
! CC = gcc
  
  #CFLAGS = $(TERM_INC) -O
  CFLAGS = $(TERM_INC) -O2
***************
*** 53,59 ****
  # You'll need to know where the Rconnect.o object file is if you want
  #   to use Socks.
  #--------------------------------------------------------------------------
! LIBS =
  #LIBS = -ldbmalloc
  #LIBS = -lgetline
  #LIBS = -lreadline -lcurses
--- 53,59 ----
  # You'll need to know where the Rconnect.o object file is if you want
  #   to use Socks.
  #--------------------------------------------------------------------------
! LIBS = -lcurses -lreadline -ltermcap
  #LIBS = -ldbmalloc
  #LIBS = -lgetline
  #LIBS = -lreadline -lcurses
***************
*** 103,109 ****
  #--------------------------------------------------------------------------
  #BINDIR = /usr/lbin
  BINDIR = /usr/local/bin
! MANDIR = /usr/man/man1
  #MANDIR = 
  #CATMANDIR = /usr/catman/LOCAL/g1
  CATMANDIR =
--- 103,109 ----
  #--------------------------------------------------------------------------
  #BINDIR = /usr/lbin
  BINDIR = /usr/local/bin
! MANDIR = /usr/local/man/man1
  #MANDIR = 
  #CATMANDIR = /usr/catman/LOCAL/g1
  CATMANDIR =
diff -rc /tmp/ncftp-1.9.3/sys.h ncftp-1.9.3/sys.h
*** /tmp/ncftp-1.9.3/sys.h	Fri Mar 17 06:50:36 1995
--- ncftp-1.9.3/sys.h	Tue Apr  4 02:21:04 1995
***************
*** 521,526 ****
--- 521,527 ----
  #include <sys/types.h>
  
  #ifndef NO_SYSPARAM
+ #undef BSD
  #include <sys/param.h>
  #endif
  
