summarylogtreecommitdiffstats
path: root/0026-glibc-2.33.patch
blob: c372c5a619478d866655f0f94c02a83d7142af43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff --git a/installwatch/installwatch.c b/installwatch/installwatch.c
index 15cb75c..77189dc 100644
--- a/installwatch/installwatch.c
+++ b/installwatch/installwatch.c
@@ -157,6 +157,20 @@ static int (*true_unlinkat)(int, const char *, int);
 	#define inline
 #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
+
+#ifndef _MKNOD_VER
+	#define _MKNOD_VER 0
+#endif
+
 static inline int true_stat(const char *pathname,struct stat *info) {
 	return true_xstat(_STAT_VER,pathname,info);
 }