diff options
-rw-r--r-- | openbsc/src/libcommon/socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |