summaryrefslogtreecommitdiff
path: root/package/libtirpc/patches/patch-src_auth_time_c
blob: b6319db968116b39ff4d942e50336b233f9809c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- libtirpc-0.2.3.orig/src/auth_time.c	2013-02-13 16:13:59.000000000 +0100
+++ libtirpc-0.2.3/src/auth_time.c	2014-03-22 13:20:53.000000000 +0100
@@ -25,7 +25,6 @@
  *	needed to deal with TCP connections.
  */
 
-#include <sys/cdefs.h>
 #include <stdio.h>
 #include <syslog.h>
 #include <string.h>
@@ -43,7 +42,7 @@
 //#include <clnt_soc.h>
 #include <sys/select.h>
 #undef NIS
-#include <rpcsvc/nis.h>
+//#include <rpcsvc/nis.h>
 
 
 #ifdef TESTING
@@ -138,6 +137,7 @@ free_eps(eps, num)
  * NIS+ server will call __rpc_get_time_offset() with the nis_server
  * structure already populated.
  */
+#ifdef 0
 static nis_server *
 get_server(sin, host, srv, eps, maxep)
 	struct sockaddr_in *sin;
@@ -491,3 +491,4 @@ error:
 
 	return (time_valid);
 }
+#endif