[Sumover-dev] [svn commit] r4056 - in common/trunk: src

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Mon Jun 4 11:35:00 BST 2007


Author: piers
Date: Mon Jun  4 11:35:00 2007
New Revision: 4056

Modified:
   common/trunk/configure.in
   common/trunk/src/inet_ntop.h
   common/trunk/src/inet_pton.h

Log:
Applied fix suggested by Doug Kosovic - and I also modified inet_pton to match - using NEED_INET_PTON instead of using HAVE_INET_PTON as more platforms now have their own definitions of these functions. 
The problem was also reported by Lassi Ylikojola:
https://mediatools.cs.ucl.ac.uk/nets/mmedia/ticket/66


Modified: common/trunk/configure.in
==============================================================================
--- common/trunk/configure.in	(original)
+++ common/trunk/configure.in	Mon Jun  4 11:35:00 2007
@@ -122,8 +122,6 @@
 then
 	AC_DEFINE(NEED_INET_NTOP)
 	AC_LIBOBJ([inet_ntop])
-else
-	AC_DEFINE(HAVE_INET_NTOP)
 fi
 #AC_SUBST(LIBOBJS)
 

Modified: common/trunk/src/inet_ntop.h
==============================================================================
--- common/trunk/src/inet_ntop.h	(original)
+++ common/trunk/src/inet_ntop.h	Mon Jun  4 11:35:00 2007
@@ -1,4 +1,4 @@
-#ifndef HAVE_INET_NTOP
+#ifdef NEED_INET_NTOP
 #if defined(__cplusplus)
 extern "C" {
 #endif
@@ -8,4 +8,4 @@
 #if defined(__cplusplus)
 }
 #endif
-#endif /* HAVE_INET_NTOP */
+#endif /* NEED_INET_NTOP */

Modified: common/trunk/src/inet_pton.h
==============================================================================
--- common/trunk/src/inet_pton.h	(original)
+++ common/trunk/src/inet_pton.h	Mon Jun  4 11:35:00 2007
@@ -1,4 +1,4 @@
-#ifndef HAVE_INET_PTON
+#ifdef NEED_INET_PTON
 #if defined(__cplusplus)
 extern "C" {
 #endif
@@ -8,5 +8,5 @@
 #if defined(__cplusplus)
 }
 #endif
-#endif /* HAVE_INET_PTON */
+#endif /* NEED_INET_PTON */
 



More information about the Sumover-dev mailing list