You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
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 <signal.h>
|
|
|
|
|
#include <ctype.h>
|
|
|
|
|
+#include <unistd.h>
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
** 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.
|