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
33
34
35
36
37
38
|
--- nfs-utils-1.2.3.orig/tools/rpcgen/rpc_main.c 2010-09-28 14:24:16.000000000 +0200
+++ nfs-utils-1.2.3/tools/rpcgen/rpc_main.c 2010-12-24 23:45:11.000000000 +0100
@@ -155,11 +155,7 @@ int timerflag; /* TRUE if !indefinite &
int newstyle; /* newstyle of passing arguments (by value) */
int Cflag = 0 ; /* ANSI C syntax */
static int allfiles; /* generate all files */
-#ifdef linux
int tirpcflag = 0; /* no tirpc by default */
-#else
-int tirpcflag = 1; /* generating code for tirpc, by default */
-#endif
int
main(int argc, char **argv)
@@ -543,13 +539,8 @@ s_output(int argc, char **argv, char *in
timerflag = 1;
}
-#ifndef linux
- if( !tirpcflag && inetdflag )
- f_print(fout, "#include <sys/ttycom.h>/* TIOCNOTTY */\n");
-#else
if( !tirpcflag )
f_print(fout, "#include <sys/ioctl.h>/* TIOCNOTTY */\n");
-#endif
if( Cflag && (inetdflag || pmflag ) ) {
f_print(fout, "#ifdef __cplusplus\n");
f_print(fout, "#include <sysent.h> /* getdtablesize, open */\n");
@@ -562,9 +553,6 @@ s_output(int argc, char **argv, char *in
f_print(fout, "#include <sys/types.h>\n");
f_print(fout, "#include <memory.h>\n");
-#ifndef linux
- f_print(fout, "#include <stropts.h>\n");
-#endif
if (inetdflag || !tirpcflag ) {
f_print(fout, "#include <sys/socket.h>\n");
f_print(fout, "#include <netinet/in.h>\n");
|