From: Natanael Copa Date: Wed, 22 Apr 2015 16:26:14 +0000 (-0400) Subject: Fix compile error: 'IPPORT_RESERVED' undeclared X-Git-Tag: libtirpc-0-2-6-rc3~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d3263ca3b64de8acdcaf71d36bfb0eda06b8710;p=libtirpc Fix compile error: 'IPPORT_RESERVED' undeclared The IPPORT_RESERVED is declared in netdb.h. This fixes the following compile error with musl libc: bindresvport.c: In function 'bindresvport_sa': bindresvport.c:67:18: error: 'IPPORT_RESERVED' undeclared (first use in this function) #define ENDPORT (IPPORT_RESERVED - 1) ^ Signed-off-by: Natanael Copa Signed-off-by: Steve Dickson --- diff --git a/src/bindresvport.c b/src/bindresvport.c index d6d9c14..5a7a1a9 100644 --- a/src/bindresvport.c +++ b/src/bindresvport.c @@ -37,6 +37,7 @@ #include #include +#include #include #include