summaryrefslogtreecommitdiffstats
path: root/patches/portmap_6.0/portmap_6.0-fix-disable-tcpwrapper.diff
blob: d2aa996746455ec3a21f77c0d02679b3c2f8983f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Robert Schwebel <r.schwebel@pengutronix.de>
Subject: Include tcpd.h only if HOST_ACCESS is selected

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
---
 pmap_check.c |    2 ++
 1 file changed, 2 insertions(+)

Index: b/pmap_check.c
===================================================================
--- a/pmap_check.c
+++ b/pmap_check.c
@@ -44,7 +44,9 @@
 #include <netinet/in.h>
 #include <rpc/rpcent.h>
 #endif
+#ifdef HOSTS_ACCESS
 #include <tcpd.h>
+#endif
 #include <arpa/inet.h>
 #include <grp.h>