From a334c296e02852880148abf92abf12c63ed49b3b Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 8 Apr 2012 15:56:00 +0200 Subject: [PATCH] make sure we still build on systems that don't have IPPROTO_GRE --- openbsc/src/libcommon/socket.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openbsc/src/libcommon/socket.c b/openbsc/src/libcommon/socket.c index 6c47a8d13..2a64767f8 100644 --- a/openbsc/src/libcommon/socket.c +++ b/openbsc/src/libcommon/socket.c @@ -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; }