diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-03-09 22:46:12 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-03-09 22:46:12 +0000 |
commit | 1991fa031c685d5cdcfc07cfea552bd7c33804e9 (patch) | |
tree | d7f55b91348302d3b2f679eb8e5d6b144a18b504 /sunrpc/rpc_svcout.c | |
parent | 60d6f5a6f50d838bcb4240fcc0223cac445c6c83 (diff) | |
download | glibc-1991fa031c685d5cdcfc07cfea552bd7c33804e9.tar.gz glibc-1991fa031c685d5cdcfc07cfea552bd7c33804e9.tar.xz glibc-1991fa031c685d5cdcfc07cfea552bd7c33804e9.zip |
Remove __GNU_LIBRARY__ conditionals from rpcgen.
Diffstat (limited to 'sunrpc/rpc_svcout.c')
-rw-r--r-- | sunrpc/rpc_svcout.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sunrpc/rpc_svcout.c b/sunrpc/rpc_svcout.c index 71d9abd97d..be234aee8a 100644 --- a/sunrpc/rpc_svcout.c +++ b/sunrpc/rpc_svcout.c @@ -91,12 +91,8 @@ write_most (const char *infile /* our name */ , int netflag, int nomain) if (inetdflag || pmflag) { const char *var_type; -#ifdef __GNU_LIBRARY__ /* WHY? */ var_type = (nomain ? "extern" : ""); -#else - var_type = (nomain ? "extern" : "static"); -#endif f_print (fout, "%s int _rpcpmstart;", var_type); f_print (fout, "\t\t/* Started by a port monitor ? */\n"); if (!tirpcflag) @@ -133,7 +129,6 @@ write_most (const char *infile /* our name */ , int netflag, int nomain) if (nomain) return; -#ifdef __GNU_LIBRARY__ if (Cflag) f_print (fout, "\nint\nmain (int argc, char **argv)\n"); else @@ -142,9 +137,6 @@ write_most (const char *infile /* our name */ , int netflag, int nomain) f_print (fout, "\tint argc;\n"); f_print (fout, "\tchar **argv;\n"); } -#else - f_print (fout, "\nmain()\n"); -#endif f_print (fout, "{\n"); if (inetdflag) { @@ -812,7 +804,7 @@ write_timeout_func (void) f_print (fout, "closedown (sig)\n\tint sig;\n"); f_print (fout, "{\n"); -#if defined (__GNU_LIBRARY__) && 0 +#if 0 f_print (fout, "\t(void) signal (sig, %s closedown);\n", Cflag ? "(SIG_PF)" : "(void(*)())"); #endif |