aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/strace/strace-4.5.14/strace-dont-include-linux-dirent-h.patch
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2009-03-25 18:29:54 +0100
committerStefan Schmidt <stefan@datenfreihafen.org>2009-03-25 18:29:54 +0100
commit95e0882e2dfabe457550a885e0eb24893df31742 (patch)
treea34220ed25168022c53d9cb5697f3666a427b30c /recipes/strace/strace-4.5.14/strace-dont-include-linux-dirent-h.patch
parent451b1c687105655a4f2c9c477b05535041e25060 (diff)
parentac41ae95b1dbe54c05adf494c0fa44b3abbfeca3 (diff)
downloadopenembedded-95e0882e2dfabe457550a885e0eb24893df31742.tar.gz
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/strace/strace-4.5.14/strace-dont-include-linux-dirent-h.patch')
-rw-r--r--recipes/strace/strace-4.5.14/strace-dont-include-linux-dirent-h.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes/strace/strace-4.5.14/strace-dont-include-linux-dirent-h.patch b/recipes/strace/strace-4.5.14/strace-dont-include-linux-dirent-h.patch
new file mode 100644
index 0000000000..1d50251417
--- /dev/null
+++ b/recipes/strace/strace-4.5.14/strace-dont-include-linux-dirent-h.patch
@@ -0,0 +1,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