X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tools%2Frpcgen%2Frpc_main.c;h=e23caff3fb396afc4d3f9dfe44fe003544cd7a45;hb=e456ee18bfbe422750dfad36f0afe2583f412538;hp=6866f3cf40913ba8e71232831836152dcc886fc6;hpb=940c7c304d4a43c00c27529cdddc7c87db6eef87;p=nfs-utils.git diff --git a/tools/rpcgen/rpc_main.c b/tools/rpcgen/rpc_main.c index 6866f3c..e23caff 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");