INN commit: trunk/backends (innbind.c)

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


    Date: Tuesday, February 1, 2011 @ 13:42:01
  Author: eagle
Revision: 9178

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:
  trunk/backends/innbind.c

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

Modified: innbind.c
===================================================================
--- innbind.c	2011-01-30 15:23:59 UTC (rev 9177)
+++ innbind.c	2011-02-01 21:42:01 UTC (rev 9178)
@@ -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