summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-05-15 19:27:04 +0000
committerIan C <ianc@noddybox.co.uk>2005-05-15 19:27:04 +0000
commit6ecf70c3f9f13fa06912691cde02f7e9a7bbf2ce (patch)
tree9598d095c93fe7cf5cc0d81576088926adced03c
parent62930023bf01568d2aea3d35e2268c6d89725dd3 (diff)
Fixed missing include. Update docs accordingly.
-rw-r--r--Makefile4
-rw-r--r--xed.16
-rw-r--r--xed.c1
-rw-r--r--xed.txt13
4 files changed, 13 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index f048a26..3a7ff3a 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@
#
# -------------------------------------------------------------------------
#
-# $Id: Makefile,v 1.2 2005-05-04 01:13:55 ianc Exp $
+# $Id: Makefile,v 1.3 2005-05-15 19:27:04 ianc Exp $
#
# Alter this if required (for instance NCURSES is being used rather than
@@ -28,7 +28,7 @@
#
LIBS=-lcurses -ltermcap
-OPTS=-g
+OPTS=-O
KEYFILE=xedkeys.h
xed: xed.c xedkeys.h Makefile
diff --git a/xed.1 b/xed.1
index 92323e9..1424120 100644
--- a/xed.1
+++ b/xed.1
@@ -175,12 +175,12 @@ The diagnostics produced by
.B xed
are intended to be self-explanatory.
.SH NOTES
-Version 2.0 of
+Version 2.1 of
.B xed
-includes these additions and fixes over 1.7 :
+includes these additions and fixes over 2.0 :
.TP
o
-Drastically tidied up code to enter the 1990's at least.
+Added missing include for unistd.h -- FreeBSD didn't mind, cygwin did.
.SH BUGS
.TP
o
diff --git a/xed.c b/xed.c
index 9049803..af8fe0a 100644
--- a/xed.c
+++ b/xed.c
@@ -23,6 +23,7 @@
static const char id[]="$Id$";
#include <sys/types.h>
+#include <unistd.h>
#include <curses.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/xed.txt b/xed.txt
index d033706..22df637 100644
--- a/xed.txt
+++ b/xed.txt
@@ -131,18 +131,19 @@ DIAGNOSTICS
The diagnostics produced by xed are intended to be self-explanatory.
NOTES
- Version 2.0 of xed includes these additions and fixes over 1.7 :
+ Version 2.1 of xed includes these additions and fixes over 2.0 :
- o Drastically tidied up code to enter the 1990's at least.
+ o Added missing include for unistd.h -- FreeBSD didn't mind, cyg-
+ win did.
BUGS
- o Even though the input routine tries it's best to mask them,
- pressing certain control keys (function keys, etc) while xed is
+ o Even though the input routine tries it's best to mask them,
+ pressing certain control keys (function keys, etc) while xed is
waiting for the second hex digit when editting can send a string
- of unexpected commands to xed. This may result in your file
+ of unexpected commands to xed. This may result in your file
being accidentally editted and saved.
- o The display is half-inverted and sometimes corrupts on some HP-
+ o The display is half-inverted and sometimes corrupts on some HP-
UX systems. This is a bug in their curses implementation.