head 1.2; access; symbols OPENPKG_E1_MP_HEAD:1.2 OPENPKG_E1_MP:1.2 OPENPKG_E1_MP_2_STABLE:1.2 OPENPKG_E1_FP:1.2 OPENPKG_2_STABLE_MP:1.2 OPENPKG_2_STABLE_20061018:1.2 OPENPKG_2_STABLE_20060622:1.2 OPENPKG_2_STABLE:1.2.0.4 OPENPKG_2_STABLE_BP:1.2 OPENPKG_2_5_RELEASE:1.2 OPENPKG_2_5_SOLID:1.2.0.2 OPENPKG_2_5_SOLID_BP:1.2 OPENPKG_CW_FP:1.2; locks; strict; comment @# @; 1.2 date 2005.01.24.14.42.26; author rse; state Exp; branches; next 1.1; 1.1 date 2004.02.03.16.48.26; author thl; state Exp; branches; next ; desc @@ 1.2 log @make code more portable and get it running under FreeBSD/amd64, too @ text @Index: Makefile --- Makefile.orig 1997-12-12 17:13:00.000000000 +0100 +++ Makefile 2004-02-01 11:25:24.000000000 +0100 @@@@ -18,12 +18,12 @@@@ ## see LDFLAGS, below, if you set this. ## -DNEED_PERROR Don't have perror() (used in testit) ## -DDO_SIGTSTP Send SIGTSTP on "suspend" key -DEFS = -DANSI_ARROWS -DHAVE_STDLIB -DHAVE_TCGETATTR -DHIDE -DUSE_DIRENT -DSYS_UNIX -DNEED_STRDUP +DEFS = -DANSI_ARROWS -DHAVE_STDLIB -DHAVE_TCGETATTR -DHIDE -DUSE_DIRENT -DSYS_UNIX ## Set your C compiler: WARN = -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings \ -Wunused -Wcomment -Wswitch -CC = gcc -ansi $(WARN) +CC = gcc #CFLAGS = $(DEFS) -O -g #CC = gcc CFLAGS = $(DEFS) -g Index: editline.c --- editline.c.orig 1997-05-22 20:13:00 +0200 +++ editline.c 2005-01-24 15:40:37 +0100 @@@@ -5,6 +5,7 @@@@ #include "editline.h" #include #include +#include /* ** Manifest constants. @@@@ -104,14 +105,6 @@@@ ** Declarations. */ STATIC CHAR *editinput(); -extern int read(); -extern int write(); -#if defined(USE_TERMCAP) -extern char *getenv(); -extern char *tgetstr(); -extern int tgetent(); -extern int tgetnum(); -#endif /* defined(USE_TERMCAP) */ /* ** TTY input/output functions. @ 1.1 log @recover missing patch from SRPM @ text @d20 2 a21 2 --- editline.c.orig 1997-05-22 20:13:00.000000000 +0200 +++ editline.c 2004-02-01 11:23:28.000000000 +0100 d30 15 @