2013-08-19 Juan Manuel Guerrero  <juan.guerrero@gmx.de>

	* doc/unrtf.1: Adjust documentation to DJGPP.

	* src/output.c [__DJGPP__]: Include inttypes.h and stdint.h
	but do not include arpa/inet.h.





diff -aprNU5 unrtf-0.21.5.orig/doc/unrtf.1 unrtf-0.21.5/doc/unrtf.1
--- unrtf-0.21.5.orig/doc/unrtf.1	2013-06-09 09:32:58 +0200
+++ unrtf-0.21.5/doc/unrtf.1	2013-08-19 18:52:18 +0200
@@ -89,24 +89,24 @@ prints the program version.
 specifies the tags output configuration file to be used. The command
 "unrtf -t html" is functionally identical to "unrtf --html".  The
 configuration files are a simple format.  To change the behaviour of
 unrtf, a local copy of a system configuration file can be be made and
 edited.  The most complete configuration file and hence the best starting
-point is /usr/local/share/unrtf/html.conf.
+point is /dev/env/DJDIR/share/unrtf/html.conf.
 .TP
 \-P config_search_path
 specifies the directories in which the configuration file for the specified
 format will be sought.  The path can be provided as a single directory
 or a list of colon separated directories. 
-The default is /usr/local/share/unrtf/ where distributed output
+The default is /dev/env/DJDIR/share/unrtf/ where distributed output
 configuration files are installed.
 .SH FILES
 .TP
-/usr/local/share/unrtf/*.conf
+/dev/env/DJDIR/share/unrtf/*.conf
 - run time output configuration files.
 .TP
-/usr/local/share/unrtf/SYMBOL.charmap
+/dev/env/DJDIR/share/unrtf/SYMBOL.charmap
 - UTF encoding of the SYMBOL font
 used in many RTF files.  Unfortunately the iconv package does not include
 font encodings.  The format is identical to iconv code page files.
 .SH WEBSITE
 http://www.gnu.org/software/unrtf/unrtf.html
diff -aprNU5 unrtf-0.21.5.orig/src/output.c unrtf-0.21.5/src/output.c
--- unrtf-0.21.5.orig/src/output.c	2013-06-09 09:32:58 +0200
+++ unrtf-0.21.5/src/output.c	2013-08-19 18:52:18 +0200
@@ -56,11 +56,18 @@
 
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif
 
-#include <arpa/inet.h>
+#ifdef __DJGPP__
+#if  __DJGPP__ == 2 && __DJGPP_MINOR__ > 3
+#include <inttypes.h>
+#endif
+#include <stdint.h>     /* inttypes.h does not include this.  */
+#else
+#include <arpa/inet.h>  /* DJGPP does not provide this.  */
+#endif
 
 #include "malloc.h"
 #include "defs.h"
 #include "error.h"
 #include "output.h"
