diff options
author | Mike Gilbert <floppym@gentoo.org> | 2020-01-21 11:35:38 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2020-01-21 11:38:18 -0500 |
commit | 8bf0ce4a1858b5cd00440e416ecfe0fd74662a01 (patch) | |
tree | 90082e284bed2e88f58d0e7ce8e303e7beac7480 /src/security.c | |
parent | eef835dbae60bc1f162d73369fda88700cf21d6f (diff) | |
download | rpcbind-8bf0ce4a1858b5cd00440e416ecfe0fd74662a01.tar.gz |
rpcbind: always use inline rpcsvc constantsrpcbind-1_2_6-rc3
Modern versions of glibc no longer provide the rpcsvc headers, so
there's very little point in trying to use them.
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src/security.c')
-rw-r--r-- | src/security.c | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/src/security.c b/src/security.c index c54ce26..8a12019 100644 --- a/src/security.c +++ b/src/security.c @@ -22,29 +22,20 @@ /* * XXX for special case checks in check_callit. */ -#ifdef HAVE_RPCSVC_MOUNT_H -#include <rpcsvc/mount.h> -#include <rpcsvc/rquota.h> -#include <rpcsvc/nfs_prot.h> -#include <rpcsvc/yp.h> -#include <rpcsvc/ypclnt.h> -#include <rpcsvc/yppasswd.h> -#else -# define MOUNTPROC_MNT 1 -# define MOUNTPROC_UMNT 3 -# define NFS_PROGRAM 100003 -# define YPPROG 100004 -# define MOUNTPROG 100005 -# define YPBINDPROG 100007 -# define YPPASSWDPROG 100009 -# define RQUOTAPROG 100011 - -# define YPBINDPROC_SETDOM 2 -# define YPPROC_MATCH 3 -# define YPPROC_FIRST 4 -# define YPPROC_NEXT 5 -# define YPPROC_ALL 8 -#endif +#define MOUNTPROC_MNT 1 +#define MOUNTPROC_UMNT 3 +#define NFS_PROGRAM 100003 +#define YPPROG 100004 +#define MOUNTPROG 100005 +#define YPBINDPROG 100007 +#define YPPASSWDPROG 100009 +#define RQUOTAPROG 100011 + +#define YPBINDPROC_SETDOM 2 +#define YPPROC_MATCH 3 +#define YPPROC_FIRST 4 +#define YPPROC_NEXT 5 +#define YPPROC_ALL 8 #include "rpcbind.h" |