make sure we still build on systems that don't have IPPROTO_GRE
This commit is contained in:
parent
09db1a44bc
commit
a334c296e0
|
@ -54,9 +54,11 @@ int make_sock(struct osmo_fd *bfd, int proto,
|
||||||
case IPPROTO_UDP:
|
case IPPROTO_UDP:
|
||||||
type = SOCK_DGRAM;
|
type = SOCK_DGRAM;
|
||||||
break;
|
break;
|
||||||
|
#ifdef IPPROTO_GRE
|
||||||
case IPPROTO_GRE:
|
case IPPROTO_GRE:
|
||||||
type = SOCK_RAW;
|
type = SOCK_RAW;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue