aports/main/nfs-utils/musl-stat64.patch
2023-10-20 17:46:33 +02:00

50 lines
1.1 KiB
Diff

diff --git a/tools/rpcgen/rpc_main.c b/tools/rpcgen/rpc_main.c
index 277adc6..fd7dea9 100644
--- a/tools/rpcgen/rpc_main.c
+++ b/tools/rpcgen/rpc_main.c
@@ -62,12 +62,6 @@
#define EXTEND 1 /* alias for TRUE */
#define DONT_EXTEND 0 /* alias for FALSE */
-#ifdef __APPLE__
-# if __DARWIN_ONLY_64_BIT_INO_T
-# define stat64 stat
-# endif
-#endif
-
struct commandline
{
int cflag; /* xdr C routines */
@@ -337,9 +331,9 @@ clear_args (void)
static void
find_cpp (void)
{
- struct stat64 buf;
+ struct stat buf;
- if (stat64 (CPP, &buf) == 0)
+ if (stat (CPP, &buf) == 0)
return;
if (cppDefined) /* user specified cpp but it does not exist */
@@ -1125,17 +1119,17 @@ putarg (int whereto, const char *cp)
static void
checkfiles (const char *infile, const char *outfile)
{
- struct stat64 buf;
+ struct stat buf;
if (infile) /* infile ! = NULL */
- if (stat64 (infile, &buf) < 0)
+ if (stat (infile, &buf) < 0)
{
perror (infile);
crash ();
}
if (outfile)
{
- if (stat64 (outfile, &buf) < 0)
+ if (stat (outfile, &buf) < 0)
return; /* file does not exist */
else
{