Skip to content

Commit

Permalink
Fix errors with missing IPPROTO_MH on windows
Browse files Browse the repository at this point in the history
Use of IPPROTO_MH was introduced with a89f0f1, but definition
was conditionalized to non-windows platforms.
  • Loading branch information
sam-github committed Oct 8, 2013
1 parent 83c84a9 commit 0717d9c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions libnet/src/common.h
Expand Up @@ -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? */

Expand All @@ -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

0 comments on commit 0717d9c

Please sign in to comment.