last finishing touch to the BeOS patch from Marcin 'Shard' Konicki Daniel

* nanoftp.c nanohttp.c: last finishing touch to the BeOS
  patch from Marcin 'Shard' Konicki
Daniel
diff --git a/ChangeLog b/ChangeLog
index 8c8942e..5856df5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Sep 29 15:23:41 CEST 2003 Daniel Veillard <daniel@veillard.com>
+
+	* nanoftp.c nanohttp.c: last finishing touch to the BeOS
+	  patch from Marcin 'Shard' Konicki
+
 Mon Sep 29 15:15:08 CEST 2003 Daniel Veillard <daniel@veillard.com>
 
 	* HTMLtree.c SAX2.c c14n.c catalog.c configure.in debugXML.c
diff --git a/nanoftp.c b/nanoftp.c
index b6043a0..f4b08d8 100644
--- a/nanoftp.c
+++ b/nanoftp.c
@@ -99,6 +99,12 @@
 #define SOCKLEN_T unsigned int
 #endif
 
+#ifdef __BEOS__
+#ifndef PF_INET
+#define PF_INET AF_INET
+#endif
+#endif
+
 
 #define FTP_COMMAND_OK		200
 #define FTP_SYNTAX_ERROR	500
diff --git a/nanohttp.c b/nanohttp.c
index 5072d37..c2c4d30 100644
--- a/nanohttp.c
+++ b/nanohttp.c
@@ -101,6 +101,12 @@
 #define SOCKET int
 #endif
 
+#ifdef __BEOS__
+#ifndef PF_INET
+#define PF_INET AF_INET
+#endif
+#endif
+
 #ifndef SOCKLEN_T
 #define SOCKLEN_T unsigned int
 #endif