forked from pool/libtirpc
30 lines
704 B
Diff
30 lines
704 B
Diff
|
From cff41dbac81564e8305d656ca771fb0ead9f8bf8 Mon Sep 17 00:00:00 2001
|
||
|
From: Thorsten Kukuk <kukuk@thkukuk.de>
|
||
|
Date: Mon, 14 Mar 2016 12:51:38 +0100
|
||
|
Subject: [PATCH 3/3] If we don't compile in YP support, don't include YP
|
||
|
header files.
|
||
|
|
||
|
Signed-off-by: Thorsten Kukuk <kukuk@thkukuk.de>
|
||
|
---
|
||
|
src/getpublickey.c | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
diff --git a/src/getpublickey.c b/src/getpublickey.c
|
||
|
index 764a5f9..8cf4dc2 100644
|
||
|
--- a/src/getpublickey.c
|
||
|
+++ b/src/getpublickey.c
|
||
|
@@ -38,8 +38,10 @@
|
||
|
#include <pwd.h>
|
||
|
#include <rpc/rpc.h>
|
||
|
#include <rpc/key_prot.h>
|
||
|
+#ifdef YP
|
||
|
#include <rpcsvc/yp_prot.h>
|
||
|
#include <rpcsvc/ypclnt.h>
|
||
|
+#endif
|
||
|
#include <string.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
--
|
||
|
1.8.5.6
|
||
|
|