summaryrefslogtreecommitdiff
path: root/src/bindresvport.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-22 12:26:14 -0400
committerSteve Dickson <steved@redhat.com>2015-04-23 08:29:45 -0400
commit4d3263ca3b64de8acdcaf71d36bfb0eda06b8710 (patch)
tree8bb15e2b86dd052ac1f7d3e4ce6a4342e586b37e /src/bindresvport.c
parentc0547c56dafb8e1cb4d2780df89b39a45085ad2f (diff)
downloadti-rpc-4d3263ca3b64de8acdcaf71d36bfb0eda06b8710.tar.gz
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 <ncopa@alpinelinux.org> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src/bindresvport.c')
-rw-r--r--src/bindresvport.c1
1 files changed, 1 insertions, 0 deletions
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 <sys/types.h>
#include <sys/socket.h>
+#include <netdb.h>
#include <netinet/in.h>
#include <errno.h>