diff -acprNC5 unrtf-0.18.1.orig/error.c unrtf-0.18.1.djgpp/error.c
*** unrtf-0.18.1.orig/error.c	Wed Oct  3 04:43:28 2001
--- unrtf-0.18.1.djgpp/error.c	Wed Jan 30 16:08:46 2002
***************
*** 35,44 ****
--- 35,45 ----
   * 22 Sep 01, tuorfa@yahoo.com: added function-level comment blocks 
   *--------------------------------------------------------------------*/
  
  
  #include <stdio.h>
+ #include <stdlib.h>
  
  #include "defs.h"
  #include "main.h"
  
  
diff -acprNC5 unrtf-0.18.1.orig/main.c unrtf-0.18.1.djgpp/main.c
*** unrtf-0.18.1.orig/main.c	Wed Oct  3 05:08:04 2001
--- unrtf-0.18.1.djgpp/main.c	Wed Jan 30 16:08:46 2002
***************
*** 39,48 ****
--- 39,49 ----
   *--------------------------------------------------------------------*/
  
  
  
  #include <stdio.h>
+ #include <stdlib.h>
  #include <string.h>
  
  #include "defs.h"
  #include "error.h"
  #include "word.h"
diff -acprNC5 unrtf-0.18.1.orig/Makefile unrtf-0.18.1.djgpp/Makefile
*** unrtf-0.18.1.orig/Makefile	Wed Oct  3 04:45:58 2001
--- unrtf-0.18.1.djgpp/Makefile	Wed Jan 30 16:39:24 2002
***************
*** 22,62 ****
  
  #
  # Makefile for UnRTF
  #
  
! 
! CFLAGS=-g -Wall
  CC=gcc
  
  OBJS=convert.o word.o error.o main.o hash.o \
  	parse.o malloc.o attr.o util.o \
  	output.o html.o text.o vt.o ps.o latex.o wpml.o
  
! TARGET=unrtf
  
  ${TARGET}:	${OBJS}
  	gcc ${OBJS} -o ${TARGET}
  
  clean:
! 	rm -f ${OBJS} ${TARGET} bcount bcount.o
  
  tidy:
  	rm -f ${OBJS} bcount.o
  	strip ${TARGET}
  
  tests:
! 	${TARGET} test/table.rtf > test/table.html
! 	${TARGET} test/slashnewline.rtf > test/slashnewline.html
! 	${TARGET} test/fontface.rtf > test/fontface.html
! 	${TARGET} test/fontsize.rtf > test/fontsize.html
  
  bcount:	bcount.c
! 	gcc bcount.c -o bcount
  
  all:	${TARGET} bcount
  	rm -f ${OBJS}
  
  install:	${TARGET}
! 	cp ${TARGET} /usr/local/bin
  
  
--- 22,68 ----
  
  #
  # Makefile for UnRTF
  #
  
! SHELL=/bin/sh
! srcdir=.
! prefix=/dev/env/DJDIR
! EXEEXT=.exe
! CFLAGS=-g -Wall -O2
  CC=gcc
  
  OBJS=convert.o word.o error.o main.o hash.o \
  	parse.o malloc.o attr.o util.o \
  	output.o html.o text.o vt.o ps.o latex.o wpml.o
  
! TARGET=unrtf$(EXEEXT)
  
  ${TARGET}:	${OBJS}
  	gcc ${OBJS} -o ${TARGET}
  
  clean:
! 	rm -f ${OBJS} ${TARGET} bcount$(EXEEXT) bcount.o
  
  tidy:
  	rm -f ${OBJS} bcount.o
  	strip ${TARGET}
  
  tests:
! 	$(srcdir)/${TARGET} $(srcdir)/test/table.rtf > $(srcdir)/test/table.html
! 	$(srcdir)/${TARGET} $(srcdir)/test/slashnew.rtf > $(srcdir)/test/slashnew.html
! 	$(srcdir)/${TARGET} $(srcdir)/test/fontface.rtf > $(srcdir)/test/fontface.html
! 	$(srcdir)/${TARGET} $(srcdir)/test/fontsize.rtf > $(srcdir)/test/fontsize.html
  
  bcount:	bcount.c
! 	gcc bcount.c -o bcount$(EXEEXT)
  
  all:	${TARGET} bcount
  	rm -f ${OBJS}
  
  install:	${TARGET}
! 	-mkdir -p $(prefix)/bin
! 	-mkdir -p $(prefix)/man/man1
! 	cp ${TARGET} $(prefix)/bin
! 	cp unrtf.1 $(prefix)/man/man1/unrtf.1
  
  
diff -acprNC5 unrtf-0.18.1.orig/output.c unrtf-0.18.1.djgpp/output.c
*** unrtf-0.18.1.orig/output.c	Wed Oct  3 04:43:28 2001
--- unrtf-0.18.1.djgpp/output.c	Wed Jan 30 16:08:44 2002
***************
*** 32,41 ****
--- 32,42 ----
   * 22 Sep 01, tuorfa@yahoo.com: added function-level comment blocks 
   *--------------------------------------------------------------------*/
  
  
  #include <stdio.h>
+ #include <stdlib.h>
  #include <string.h>
  #include "malloc.h"
  #include "defs.h"
  #include "error.h"
  #include "output.h"
