+++ /dev/null
-diff -urN ed-0.2.orig/configure.in ed-0.2/configure.in
---- ed-0.2.orig/configure.in Sat Oct 5 14:24:30 2002
-+++ ed-0.2/configure.in Sat Oct 5 14:36:29 2002
-@@ -15,7 +15,8 @@
- AC_FUNC_VPRINTF
- AC_FUNC_ALLOCA
- if test "$ALLOCA" = alloca.o; then
-- AC_SUBST(LIBOBJS)LIBOBJS="$LIBOBJS xmalloc.o error.o"
-+ AC_LIBOBJ(xmalloc)
-+ AC_LIBOBJ(error)
- fi
-
- AC_OUTPUT(Makefile)
+++ /dev/null
---- ed-0.2/buf.c.orig Wed Nov 29 14:45:10 2000
-+++ ed-0.2/buf.c Wed Nov 29 15:13:16 2000
-@@ -200,15 +200,15 @@
- int
- open_sbuf ()
- {
-- char *mktemp ();
- int u;
-+ int filedes;
-
- isbinary = newline_added = 0;
- u = umask(077);
- strcpy (sfn, "/tmp/ed.XXXXXX");
-- if (mktemp (sfn) == NULL || (sfp = fopen (sfn, "w+")) == NULL)
-+ if ((filedes=mkstemp(sfn)) == -1 || (sfp=fdopen(filedes, "w+")) == NULL)
- {
-- fprintf (stderr, "%s: %s\n", sfn, strerror (errno));
-+ fprintf (stderr, "%s\n", strerror (errno));
- sprintf (errmsg, "Cannot open temp file");
- umask(u);
- return ERR;
-@@ -226,7 +226,7 @@
- {
- if (fclose (sfp) < 0)
- {
-- fprintf (stderr, "%s: %s\n", sfn, strerror (errno));
-+ fprintf (stderr, "%s\n", strerror (errno));
- sprintf (errmsg, "Cannot close temp file");
- return ERR;
- }
-
+++ /dev/null
---- ed-0.2/Makefile.in.regex 2002-12-17 13:08:36.000000000 +0100
-+++ ed-0.2/Makefile.in 2002-12-17 13:09:35.000000000 +0100
-@@ -54,9 +54,9 @@
- SOURCES = buf.c glbl.c io.c main.c re.c signal.c sub.c undo.c version.c
- OBJECTS = buf.o glbl.o io.o main.o re.o signal.o sub.o undo.o version.o
-
--LIBHDRS = pathmax.h getopt.h regex.h
--LIBSRCS = alloca.c error.c getopt.c getopt1.c regex.c xmalloc.c
--LIBOBJS = @ALLOCA@ getopt.o getopt1.o regex.o @LIBOBJS@
-+LIBHDRS = pathmax.h getopt.h
-+LIBSRCS = alloca.c error.c getopt.c getopt1.c xmalloc.c
-+LIBOBJS = @ALLOCA@ getopt.o getopt1.o @LIBOBJS@
-
- DISTFILES = $(HEADERS) $(LIBHDRS) $(LIBSRCS) $(SOURCES) ChangeLog COPYING \
- INSTALL Makefile.in NEWS POSIX README TODO THANKS \
-@@ -68,11 +68,11 @@
- ed: $(OBJECTS) libed.a
- $(CC) $(LDFLAGS) -o ed $(OBJECTS) libed.a $(LIBS)
-
--buf.o: ed.h config.h regex.h
--ed.o: ed.h config.h regex.h
--main.o: ed.h config.h regex.h getopt.h pathmax.h
--re.o: ed.h config.h regex.h
--signal.o: ed.h config.h regex.h
-+buf.o: ed.h config.h
-+ed.o: ed.h config.h
-+main.o: ed.h config.h getopt.h pathmax.h
-+re.o: ed.h config.h
-+signal.o: ed.h config.h
-
- libed.a: $(LIBOBJS)
- rm -f libed.a
-@@ -80,7 +80,6 @@
- $(RANLIB) libed.a
-
- getopt.o getopt1.o: getopt.h
--regex.o: regex.h
-
- check: ed
- rootme=`pwd`; srcrootme=`cd $(srcdir); pwd`;\