nfs-kernel-server: add a host build for rpcgen with the header file fixes, fix patchi...
[openwrt/svn-archive/archive.git] / net / nfs-kernel-server / patches / 002-no_ttycom_h.patch
1 --- a/tools/rpcgen/rpc_main.c
2 +++ b/tools/rpcgen/rpc_main.c
3 @@ -545,13 +545,6 @@ s_output(int argc, char **argv, char *in
4 timerflag = 1;
5 }
6
7 -#ifndef linux
8 - if( !tirpcflag && inetdflag )
9 - f_print(fout, "#include <sys/ttycom.h>/* TIOCNOTTY */\n");
10 -#else
11 - if( !tirpcflag )
12 - f_print(fout, "#include <sys/ttycom.h>/* TIOCNOTTY */\n");
13 -#endif
14 if( Cflag && (inetdflag || pmflag ) ) {
15 f_print(fout, "#ifdef __cplusplus\n");
16 f_print(fout, "#include <sysent.h> /* getdtablesize, open */\n");
17 --- a/tools/rpcgen/rpc_svcout.c
18 +++ b/tools/rpcgen/rpc_svcout.c
19 @@ -788,7 +788,6 @@ write_rpc_svc_fg(char *infile, char *sp)
20 else {
21 f_print(fout, "%si = open(\"/dev/tty\", 2);\n", sp);
22 f_print(fout, "%sif (i >= 0) {\n", sp);
23 - f_print(fout, "%s\t(void) ioctl(i, TIOCNOTTY, (char *)NULL);\n", sp);;
24 f_print(fout, "%s\t(void) close(i);\n", sp);
25 f_print(fout, "%s}\n", sp);
26 }