diff options
Diffstat (limited to 'tools/rpcgen')
-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"); |