diff options
author | Evgeny Zverev <evgeny.zverev@gmail.com> | 2013-01-12 00:02:40 +0400 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-01-12 15:10:58 +0100 |
commit | 06ddf8bd24ae1104f77498d4cd0c766c164d4525 (patch) | |
tree | d5f8d7524c3d119a232fe109757b3721c31e8de0 /src | |
parent | de6e4983e7f83794e45af5a70b036ed9f4437ab5 (diff) |
Fix build on Cygwin
Diffstat (limited to 'src')
-rw-r--r-- | src/gb/gprs_ns_frgre.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gb/gprs_ns_frgre.c b/src/gb/gprs_ns_frgre.c index e557c7e8..57cf65e3 100644 --- a/src/gb/gprs_ns_frgre.c +++ b/src/gb/gprs_ns_frgre.c @@ -43,12 +43,16 @@ #define GRE_PTYPE_IPv4 0x0800 #define GRE_PTYPE_KAR 0x0000 /* keepalive response */ +#ifndef IPPROTO_GRE +# define IPPROTO_GRE 47 +#endif + struct gre_hdr { uint16_t flags; uint16_t ptype; } __attribute__ ((packed)); -#if defined(__FreeBSD__) || defined(__APPLE__) +#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__CYGWIN__) /** * On BSD the IPv4 struct is called struct ip and instead of iXX * the members are called ip_XX. One could change this code to use |