libtirpc 1.1.4
[git/cygwin-packages/libtirpc.git] / 1.0.2-cygwin-bindresvport.patch
CommitLineData
e2a1cd0a
YS
1--- origsrc/libtirpc-1.0.2/configure.ac 2018-02-06 21:45:15.467634500 -0600
2+++ src/libtirpc-1.0.2/configure.ac 2018-02-07 10:27:54.897376400 -0600
3@@ -92,7 +92,7 @@ AC_HEADER_DIRENT
4 AC_PREFIX_DEFAULT(/usr)
5 AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h features.h gssapi/gssapi_ext.h])
6 AC_CHECK_LIB([pthread], [pthread_create])
7-AC_CHECK_FUNCS([getrpcbyname getrpcbynumber setrpcent endrpcent getrpcent])
8+AC_CHECK_FUNCS([bindresvport getrpcbyname getrpcbynumber setrpcent endrpcent getrpcent])
9
10 AC_CONFIG_FILES([Makefile src/Makefile man/Makefile doc/Makefile])
11 AC_OUTPUT(libtirpc.pc)
12--- origsrc/libtirpc-1.0.2/src/bindresvport.c 2018-02-06 21:45:16.038017400 -0600
13+++ src/libtirpc-1.0.2/src/bindresvport.c 2018-02-07 10:29:18.679180800 -0600
14@@ -32,6 +32,10 @@
15 *
16 * Portions Copyright(C) 1996, Jason Downs. All rights reserved.
17 */
18+
19+#ifdef HAVE_CONFIG_H
20+#include "config.h"
21+#endif
22
23 #include <sys/types.h>
24 #include <sys/socket.h>
25@@ -49,6 +53,8 @@
26 #include <string.h>
27 #include <reentrant.h>
28
29+#if !HAVE_BINDRESVPORT
30+
31 extern pthread_mutex_t port_lock;
32
33 /*
34@@ -246,3 +252,4 @@ bindresvport_sa(sd, sa)
35 return (error);
36 }
37 #endif
38+#endif /* !HAVE_BINDRESVPORT */
This page took 0.020875 seconds and 5 git commands to generate.