summaryrefslogtreecommitdiff
path: root/devel/strace/files/patch-file.c
blob: 4cb45cf6bb5dfce81d3d6f51cd44f0fe9b86d9df (plain) (blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--- file.c.orig	2008-08-01 09:13:10.000000000 +0800
+++ file.c	2008-11-21 00:16:35.000000000 +0800
@@ -1656,7 +1656,7 @@
 		statbuf.f_bsize, statbuf.f_blocks, statbuf.f_bfree);
 	tprintf("f_bavail=%u, f_files=%u, f_ffree=%u, f_fsid={%d, %d}, f_namelen=%u",
 		statbuf.f_bavail,statbuf.f_files, statbuf.f_ffree,
-		statbuf.f_fsid.__val[0], statbuf.f_fsid.__val[1],
+		statbuf.f_fsid.val[0], statbuf.f_fsid.val[1],
 		statbuf.f_namelen);
 #else /* !ALPHA */
 	tprintf("{f_type=%s, f_bsize=%lu, f_blocks=%lu, f_bfree=%lu, ",
@@ -1668,7 +1668,7 @@
 		(unsigned long)statbuf.f_bavail,
 		(unsigned long)statbuf.f_files,
 		(unsigned long)statbuf.f_ffree,
-		statbuf.f_fsid.__val[0], statbuf.f_fsid.__val[1]);
+		statbuf.f_fsid.val[0], statbuf.f_fsid.val[1]);
 #ifdef LINUX
 	tprintf(", f_namelen=%lu", (unsigned long)statbuf.f_namelen);
 #endif /* LINUX */
@@ -2856,6 +2856,7 @@
 }
 
 
+#ifdef LINUX
 static const struct xlat advise[] = {
   { POSIX_FADV_NORMAL,		"POSIX_FADV_NORMAL"	},
   { POSIX_FADV_RANDOM,		"POSIX_FADV_RANDOM"	},
@@ -2865,6 +2866,7 @@
   { POSIX_FADV_NOREUSE,		"POSIX_FADV_NOREUSE"	},
   { 0,				NULL			}
 };
+#endif
 
 
 #ifdef LINUX
@@ -2888,6 +2890,7 @@
 #endif
 
 
+#ifdef LINUX
 int
 sys_fadvise64_64(tcp)
 struct tcb *tcp;
@@ -2909,6 +2912,7 @@
     }
     return 0;
 }
+#endif
 
 #ifdef LINUX
 static const struct xlat inotify_modes[] = {