INN commit: branches/2.5/backends (innbind.c)

INN Commit rra at isc.org
Tue Feb 1 21:42:12 UTC 2011


    Date: Tuesday, February 1, 2011 @ 13:42:11
  Author: eagle
Revision: 9179

Ensure flag is declared in innbind for IPV6_V6ONLY

If SO_REUSEADDR were not defined but IPV6_V6ONLY were defined, innbind
would fail to compile because a flag variable would not be declared.
This is an unlikely set of supported options for a network stack, but
let's be fully correct.  Thanks, Florian Schlichting.

Modified:
  branches/2.5/backends/innbind.c

-----------+
 innbind.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: innbind.c
===================================================================
--- innbind.c	2011-02-01 21:42:01 UTC (rev 9178)
+++ innbind.c	2011-02-01 21:42:11 UTC (rev 9179)
@@ -212,7 +212,7 @@
 create_socket(struct binding *binding, const char *spec)
 {
     int fd;
-#ifdef SO_REUSEADDR
+#if defined(SO_REUSEADDR) || defined(IPV6_V6ONLY)
     int flag;
 #endif
 




More information about the inn-committers mailing list