make sure we still build on systems that don't have IPPROTO_GRE

This commit is contained in:
Harald Welte 2012-04-08 15:56:00 +02:00
parent 09db1a44bc
commit a334c296e0
1 changed files with 2 additions and 0 deletions

View File

@ -54,9 +54,11 @@ int make_sock(struct osmo_fd *bfd, int proto,
case IPPROTO_UDP:
type = SOCK_DGRAM;
break;
#ifdef IPPROTO_GRE
case IPPROTO_GRE:
type = SOCK_RAW;
break;
#endif
default:
return -EINVAL;
}