From fd705586d3ec76a5b324db151b87be1e4514f8af Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 8 Oct 2008 11:08:55 -0400 Subject: [PATCH 1/1] rpcgen: include sys/ioctl.h on linux systems The rpcgen tool included with nfs-utils will generate calls to ioctl() but not actually generate the sys/ioctl.h header include. Attached patch should fix this. Signed-off-by: Mike Frysinger Signed-off-by: Steve Dickson --- tools/rpcgen/rpc_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/rpcgen/rpc_main.c b/tools/rpcgen/rpc_main.c index 6866f3c..26f202b 100644 --- a/tools/rpcgen/rpc_main.c +++ b/tools/rpcgen/rpc_main.c @@ -548,6 +548,9 @@ s_output(int argc, char **argv, char *infile, char *define, int extend, #ifndef linux if( !tirpcflag && inetdflag ) f_print(fout, "#include /* TIOCNOTTY */\n"); +#else + if( !tirpcflag ) + f_print(fout, "#include /* TIOCNOTTY */\n"); #endif if( Cflag && (inetdflag || pmflag ) ) { f_print(fout, "#ifdef __cplusplus\n"); -- 2.39.2