summaryrefslogtreecommitdiff
path: root/debian/patches/dyson-syscall-table.patch
blob: 23009f2ee3b088848269a3afae4ef970158f5b6b (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
Index: gdb.git/gdb/proc-events.c
===================================================================
--- gdb.git.orig/gdb/proc-events.c
+++ gdb.git/gdb/proc-events.c
@@ -167,7 +167,9 @@ init_syscall_table (void)
 #ifdef SYS_fstatat64
   syscall_table[SYS_fstatat64] = "fstatat64";
 #endif
+#ifdef SYS_fstatfs
   syscall_table[SYS_fstatfs] = "fstatfs";
+#endif
   syscall_table[SYS_fstatvfs] = "fstatvfs";
   syscall_table[SYS_fstatvfs64] = "fstatvfs64";
 #ifdef SYS_fxstat
@@ -432,7 +434,9 @@ init_syscall_table (void)
 #ifdef SYS_stat64
   syscall_table[SYS_stat64] = "stat64";
 #endif
+#ifdef SYS_statfs
   syscall_table[SYS_statfs] = "statfs";
+#endif
   syscall_table[SYS_statvfs] = "statvfs";
   syscall_table[SYS_statvfs64] = "statvfs64";
   syscall_table[SYS_stime] = "stime";