summaryrefslogtreecommitdiff
path: root/recipes/strace/strace-4.5.15/strace-dont-include-linux-dirent-h.patch
blob: 1d502514170656291774a7a452db53b8c9c47b6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: strace-4.5.14/file.c
===================================================================
--- strace-4.5.14.orig/file.c	2009-03-24 08:35:13.000000000 -0700
+++ strace-4.5.14/file.c	2009-03-24 08:39:43.000000000 -0700
@@ -35,12 +35,12 @@
 
 #include <dirent.h>
 #ifdef LINUX
-#define dirent kernel_dirent
-#define dirent64 kernel_dirent64
-#include <linux/types.h>
-#include <linux/dirent.h>
-#undef dirent
-#undef dirent64
+struct kernel_dirent {
+	unsigned long   d_ino;
+	unsigned long   d_off;
+	unsigned short  d_reclen;
+	char            d_name[1];
+};
 #else
 #define kernel_dirent dirent
 #endif