21 lines
572 B
Diff
21 lines
572 B
Diff
diff -ruN fakeroot/libfakeroot.c fakeroot-upstream-1.30.1/libfakeroot.c
|
|
--- fakeroot/libfakeroot.c 2022-11-14 03:31:24.576878771 +0800
|
|
+++ fakeroot-upstream-1.30.1/libfakeroot.c 2022-11-14 03:42:12.074723929 +0800
|
|
@@ -117,6 +117,16 @@
|
|
#endif
|
|
#endif
|
|
|
|
+#ifndef _STAT_VER
|
|
+ #if defined (__aarch64__)
|
|
+ #define _STAT_VER 0
|
|
+ #elif defined (__x86_64__)
|
|
+ #define _STAT_VER 1
|
|
+ #else
|
|
+ #define _STAT_VER 3
|
|
+ #endif
|
|
+#endif
|
|
+
|
|
/*
|
|
These INT_* (which stands for internal) macros should always be used when
|
|
the fakeroot library owns the storage of the stat variable.
|