Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 340953
Collapse All | Expand All

(-)a/files/build-with-libtirpc.patch (+32 lines)
Line 0 Link Here
1
diff --git a/Makefile.linux b/Makefile.linux
2
index 0779af2..c5d6f4f 100644
3
--- a/Makefile.linux
4
+++ b/Makefile.linux
5
@@ -40,9 +40,9 @@ HDRS= pcnfsd.h common.h
6
 
7
 LINTFLAGS= -hbax
8
 # uncomment as appropriate for debugging
9
-CFLAGS = -O2 -fexpensive-optimizations -pipe -DOSVER_BSD386 $(RPM_OPT_FLAGS)
10
+CFLAGS = -O2 -fexpensive-optimizations -pipe -DOSVER_BSD386 -I/usr/include/tirpc $(RPM_OPT_FLAGS)
11
 #CFLAGS = -g -DDEBUG -DOSVER_BSD386
12
-LIBS = #-lrpc
13
+LIBS = -ltirpc
14
 LIBCRYPT = -lcrypt
15
 LFLAGS =
16
 
17
diff --git a/pcnfsd_svc.c b/pcnfsd_svc.c
18
index 3c98fb5..041c95e 100644
19
--- a/pcnfsd_svc.c
20
+++ b/pcnfsd_svc.c
21
@@ -441,9 +441,9 @@ getcallername()
22
         struct sockaddr_in actual;
23
         struct hostent *hp;
24
         static struct in_addr prev;
25
-	static char cname[128];
26
+        static char cname[128];
27
 
28
-        actual = *svc_getcaller(caller);
29
+        actual = *((struct sockaddr_in*)svc_getcaller(caller));
30
 
31
         if (memcmp((char *)&actual.sin_addr, (char *)&prev,
32
 		 sizeof(struct in_addr)) == 0)

Return to bug 340953