initial import
[patches.git] / nfs-utils-1.1.2-rpcgen-ioctl.patch
1 --- tools/rpcgen/rpc_main.c
2 +++ tools/rpcgen/rpc_main.c
3 @@ -548,6 +548,9 @@
4 #ifndef linux
5 if( !tirpcflag && inetdflag )
6 f_print(fout, "#include <sys/ttycom.h>/* TIOCNOTTY */\n");
7 +#else
8 + if( !tirpcflag )
9 + f_print(fout, "#include <sys/ioctl.h>/* TIOCNOTTY */\n");
10 #endif
11 if( Cflag && (inetdflag || pmflag ) ) {
12 f_print(fout, "#ifdef __cplusplus\n");