diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-10-08 11:08:55 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-10-08 11:08:55 -0400 |
commit | fd705586d3ec76a5b324db151b87be1e4514f8af (patch) | |
tree | 7ffe700d25363d2c48a38b7c80b5bb1662e1a676 /tools | |
parent | 4bd5ab69e5aa8bac905409eff111dbbc24581973 (diff) | |
download | nfs-utils-fd705586d3ec76a5b324db151b87be1e4514f8af.tar.gz nfs-utils-fd705586d3ec76a5b324db151b87be1e4514f8af.tar.xz nfs-utils-fd705586d3ec76a5b324db151b87be1e4514f8af.zip |
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 <vapier@gentoo.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/rpcgen/rpc_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <sys/ttycom.h>/* TIOCNOTTY */\n"); +#else + if( !tirpcflag ) + f_print(fout, "#include <sys/ttycom.h>/* TIOCNOTTY */\n"); #endif if( Cflag && (inetdflag || pmflag ) ) { f_print(fout, "#ifdef __cplusplus\n"); |