From 0717d9c0697dddfbea4b91704deaf4af5970f4e6 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Tue, 8 Oct 2013 10:22:39 -0700 Subject: Fix errors with missing IPPROTO_MH on windows Use of IPPROTO_MH was introduced with a89f0f10de, but definition was conditionalized to non-windows platforms. --- libnet/src/common.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libnet/src/common.h b/libnet/src/common.h index de31704..358db77 100644 --- a/libnet/src/common.h +++ b/libnet/src/common.h @@ -38,14 +38,7 @@ #include -/* IPPROTO_ and sockaddr_ definitions are here. They are often - * implicitly pulled in, but some systems need them explicitly - * included. - */ #include -#ifndef IPPROTO_MH -#define IPPROTO_MH 135 /* IPv6 mobility header */ -#endif /* TODO - should ../include/gnuc.h be included here? */ @@ -56,3 +49,10 @@ #include "../include/config.h" #include "../include/libnet.h" +/* IPPROTO_ and sockaddr_ definitions are here. They are often + * implicitly pulled in, but some systems need them explicitly + * included. + */ +#ifndef IPPROTO_MH +#define IPPROTO_MH 135 /* IPv6 mobility header */ +#endif -- cgit v1.2.1