]> 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 265106029cc79dd914d7097b11ecc8bffbd25a48..26f202b4f37de63058509a85486611a890fd1a18 100644 (file)
@@ -28,7 +28,7 @@
  * Mountain View, California  94043
  */
 
-#ifndef lint
+#if 0
 static char sccsid[] = "@(#)rpc_main.c 1.30 89/03/30 (C) 1987 SMI";
 #endif
 
@@ -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");