r11080 - libprelude/trunk/src

[email protected]
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
Author: yoann
Date: 2008-11-04 14:42:34 +0100 (Tue, 04 Nov 2008)
New Revision: 11080

Modified:
   libprelude/trunk/src/prelude-client.c
Log:
Fix compilation when IPv6 is not available.


Modified: libprelude/trunk/src/prelude-client.c
===================================================================
--- libprelude/trunk/src/prelude-client.c	2008-11-04 13:42:27 UTC (rev 11079)
+++ libprelude/trunk/src/prelude-client.c	2008-11-04 13:42:34 UTC (rev 11080)
@@ -282,6 +282,7 @@
 }
 
 
+#ifdef HAVE_IPV6
 static prelude_bool_t is_loopback_ipv6(struct in6_addr *addr)
 {
         struct in6_addr lo;
@@ -290,6 +291,7 @@
 
         return (memcmp(addr, &lo, sizeof(lo)) == 0) ? TRUE : FALSE;
 }
+#endif
 
 
 static prelude_bool_t is_loopback_ipv4(struct in_addr *addr)
@@ -303,8 +305,10 @@
         if ( family == AF_INET )
                 return is_loopback_ipv4(addr);
 
+#ifdef HAVE_IPV6
         else if ( family == AF_INET6 )
                 return is_loopback_ipv6(addr);
+#endif
 
         else
                 return FALSE;

_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.