diff options
Diffstat (limited to 'libc/sunrpc/rpc_main.c')
-rw-r--r-- | libc/sunrpc/rpc_main.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libc/sunrpc/rpc_main.c b/libc/sunrpc/rpc_main.c index 1477b43a7..0223c9a9f 100644 --- a/libc/sunrpc/rpc_main.c +++ b/libc/sunrpc/rpc_main.c @@ -39,6 +39,7 @@ #include <string.h> #include <unistd.h> #include <libintl.h> +#include <locale.h> #include <ctype.h> #include <sys/types.h> #include <sys/param.h> @@ -173,6 +174,9 @@ main (int argc, const char *argv[]) { struct commandline cmd; + setlocale (LC_ALL, ""); + textdomain (_libc_intl_domainname); + (void) memset ((char *) &cmd, 0, sizeof (struct commandline)); clear_args (); if (!parseargs (argc, argv, &cmd)) @@ -322,9 +326,9 @@ clear_args (void) static void find_cpp (void) { - struct stat buf; + struct stat64 buf; - if (stat (CPP, &buf) == 0) + if (stat64 (CPP, &buf) == 0) return; if (cppDefined) /* user specified cpp but it does not exist */ @@ -1110,17 +1114,17 @@ putarg (int whereto, const char *cp) static void checkfiles (const char *infile, const char *outfile) { - struct stat buf; + struct stat64 buf; if (infile) /* infile ! = NULL */ - if (stat (infile, &buf) < 0) + if (stat64 (infile, &buf) < 0) { perror (infile); crash (); } if (outfile) { - if (stat (outfile, &buf) < 0) + if (stat64 (outfile, &buf) < 0) return; /* file does not exist */ else { |