summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Roberts <sam@strongloop.com>2013-10-08 10:22:39 -0700
committerSam Roberts <sam@strongloop.com>2013-10-08 10:22:39 -0700
commit0717d9c0697dddfbea4b91704deaf4af5970f4e6 (patch)
tree64c8b8fe24d5ad8e4b456e7f3e446f45ab1377b0
parent83c84a92a2c8bd49a7c103c7edfcdc74df4c28e0 (diff)
downloadlibnet-0717d9c0697dddfbea4b91704deaf4af5970f4e6.tar.gz
Fix errors with missing IPPROTO_MH on windows
Use of IPPROTO_MH was introduced with a89f0f10de, but definition was conditionalized to non-windows platforms.
-rw-r--r--libnet/src/common.h14
1 files 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 <sys/types.h>
-/* IPPROTO_ and sockaddr_ definitions are here. They are often
- * implicitly pulled in, but some systems need them explicitly
- * included.
- */
#include <netinet/in.h>
-#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