diff options
author | Patrick Steinhardt <ps@pks.im> | 2019-02-27 12:02:18 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2019-02-27 12:12:38 -0500 |
commit | edaadbe66456378547e2e95bd0e8bce4d2984ee0 (patch) | |
tree | 1d9063e2a68a2fd79bb279555e633714ae7ec103 /nfs.conf | |
parent | dce8f980e25cf625d1bce2ef6f499b3a2664f2ce (diff) | |
download | nfs-utils-edaadbe66456378547e2e95bd0e8bce4d2984ee0.tar.gz |
svc_socket: fix use of undefined macro HAVE_GETRPCBYNUMBER_R
The macro HAVE_GETRPCBYNUMBER_R is set based on whether the
`getrpcbynumber_r` function was found by autoconf or not. While another
location correctly checks whether it is set by using `#ifdef`,
`getservport()` instead wrongly uses `#if HAVE_GETRPCBYNUMBER_R`. This
may cause a compilation error with gcc with "-Werror=undef" if the macro
has not been defined.
Fix the error by using `#ifdef` instead.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'nfs.conf')
0 files changed, 0 insertions, 0 deletions