]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - tools/rpcgen/rpc_main.c
rpcgen: include sys/ioctl.h on linux systems
[nfs-utils.git] / tools / rpcgen / rpc_main.c
index 6866f3cf40913ba8e71232831836152dcc886fc6..26f202b4f37de63058509a85486611a890fd1a18 100644 (file)
@@ -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");