[kaffe] CVS kaffe (dalibor): Small fix for warning on Cygwin

Kaffe CVS Kaffe Mailing List <kaffe@kaffe.org>
Fri Dec 19 10:15:02 2003


PatchSet 4228 
Date: 2003/12/19 18:12:28
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Small fix for warning on Cygwin

2003-12-19  Dalibor Topic <robilad@kaffe.org>

        * include/nets.h
        [!HAVE_INET_NTOP]: Added prototype for inet_ntop.
        [!HAVE_INET_PTON]: Added prototype for inet_pton.

Members: 
	ChangeLog:1.1817->1.1818 
	include/nets.h:1.5->1.6 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1817 kaffe/ChangeLog:1.1818
--- kaffe/ChangeLog:1.1817	Sun Dec 14 17:13:11 2003
+++ kaffe/ChangeLog	Fri Dec 19 18:12:28 2003
@@ -1,3 +1,9 @@
+2003-12-19  Dalibor Topic <robilad@kaffe.org>
+
+	* include/nets.h
+	[!HAVE_INET_NTOP]: Added prototype for inet_ntop.
+	[!HAVE_INET_PTON]: Added prototype for inet_pton.
+
 2003-12-14  Dalibor Topic <robilad@kaffe.org>
 
 	* kaffe/kaffevm/support.h:
Index: kaffe/include/nets.h
diff -u kaffe/include/nets.h:1.5 kaffe/include/nets.h:1.6
--- kaffe/include/nets.h:1.5	Mon Jan  6 17:14:18 2003
+++ kaffe/include/nets.h	Fri Dec 19 18:12:30 2003
@@ -35,4 +35,13 @@
 #define	SYS_HERROR(x)	"Network error"
 #endif
 
-#endif
+#if !defined(HAVE_INET_NTOP)
+extern const char * inet_ntop(int af, const void * src, char * dst, size_t size);
+#endif /* HAVE_INET_NTOP */
+
+#if !defined(HAVE_INET_PTON)
+extern int inet_pton(int af, const char * src, void * dst);
+#endif /* HAVE_INET_PTON */
+
+#endif /* __nets_h */
+