Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 391622 Details for
Bug 532514
net-fs/nfs-utils-1.3.0-r1: add support for building against sys-libs/musl
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0004-Allow-usage-of-getrpcbynumber-when-getrpcbynumber_r-.patch
0004-Allow-usage-of-getrpcbynumber-when-getrpcbynumber_r-.patch (text/plain), 2.09 KB, created by
DaggyStyle
on 2014-12-13 21:48:49 UTC
(
hide
)
Description:
0004-Allow-usage-of-getrpcbynumber-when-getrpcbynumber_r-.patch
Filename:
MIME Type:
Creator:
DaggyStyle
Created:
2014-12-13 21:48:49 UTC
Size:
2.09 KB
patch
obsolete
>From c2fc4ac0819b4e6f9591b86245ad537906f9d0cb Mon Sep 17 00:00:00 2001 >From: Natanael Copa <ncopa@alpinelinux.org> >Date: Wed, 12 Feb 2014 13:54:31 +0000 >Subject: [PATCH 4/7] Allow usage of getrpcbynumber() when getrpcbynumber_r() > is unavailable > >--- > configure.ac | 6 +----- > support/nfs/svc_socket.c | 6 ++++++ > 2 files changed, 7 insertions(+), 5 deletions(-) > >diff --git a/configure.ac b/configure.ac >index bf433d6..c758cc7 100644 >--- a/configure.ac >+++ b/configure.ac >@@ -247,9 +247,6 @@ AC_CHECK_FUNC([connect], , > AC_CHECK_FUNC([getaddrinfo], , > [AC_MSG_ERROR([Function 'getaddrinfo' not found.])]) > >-AC_CHECK_FUNC([getrpcbynumber], , >- [AC_MSG_ERROR([Function 'getrpcbynumber' not found.])]) >- > AC_CHECK_FUNC([getservbyname], , > [AC_MSG_ERROR([Function 'getservbyname' not found.])]) > >@@ -408,12 +405,11 @@ AC_FUNC_STAT > AC_FUNC_VPRINTF > AC_CHECK_FUNCS([alarm atexit dup2 fdatasync ftruncate getcwd \ > gethostbyaddr gethostbyname gethostname getmntent \ >- getnameinfo getrpcbyname getifaddrs \ >+ getnameinfo getrpcbyname getrpcbynumber getrpcbynumber_r getifaddrs \ > gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \ > ppoll realpath rmdir select socket strcasecmp strchr strdup \ > strerror strrchr strtol strtoul sigprocmask]) > >- > dnl ************************************************************* > dnl Check for data sizes > dnl ************************************************************* >diff --git a/support/nfs/svc_socket.c b/support/nfs/svc_socket.c >index f56f310..61ccf5b 100644 >--- a/support/nfs/svc_socket.c >+++ b/support/nfs/svc_socket.c >@@ -42,8 +42,14 @@ int getservport(u_long number, const char *proto) > struct servent servbuf, *servp = NULL; > int ret; > >+#if HAVE_GETRPCBYNUMBER_R > ret = getrpcbynumber_r(number, &rpcbuf, rpcdata, sizeof rpcdata, > &rpcp); >+#else >+ rpcp = getrpcbynumber(number); >+ ret = 0; >+#endif >+ > if (ret == 0 && rpcp != NULL) { > /* First try name. */ > ret = getservbyname_r(rpcp->r_name, proto, &servbuf, servdata, >-- >1.8.5.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 532514
:
391610
|
391612
|
391614
|
391616
|
391618
|
391620
| 391622 |
391624
|
391626
|
391628
|
391630
|
391632
|
391634
|
391636
|
391638
|
391640
|
391642