summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-31 17:47:10 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-31 17:47:10 (GMT)
commit0073c731f4c211f16f5f64d44624adad9b6a9b6e (patch)
tree728c1fe373a8072240b8455355879bfa9cef1dc5 /patches
parent94e376af7728839c40192d5a02abbeb638dc36f1 (diff)
On 20090131.1659+0100, Vincent Sanders <vince@kyllikki.org> wrote:
[This] patch is a simple one for strace 4.5.17 .They altered the exported kernel headers post 2.6.26 and removed a header. This patch is a backport from the strace revision system. This allows strace to be built with 2.6.27 and later kernel versions /trunk/patches/strace/4.5.17/190-dirent-include.patch | 33 33 0 0 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+)
Diffstat (limited to 'patches')
-rw-r--r--patches/strace/4.5.17/190-dirent-include.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/patches/strace/4.5.17/190-dirent-include.patch b/patches/strace/4.5.17/190-dirent-include.patch
new file mode 100644
index 0000000..5f596e1
--- /dev/null
+++ b/patches/strace/4.5.17/190-dirent-include.patch
@@ -0,0 +1,33 @@
+--- strace-orig/file.c 2008/05/20 04:56:18 1.92
++++ strace/file.c 2008/08/01 01:13:10 1.93
+@@ -28,21 +28,22 @@
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+- * $Id: file.c,v 1.92 2008/05/20 04:56:18 roland Exp $
++ * $Id: file.c,v 1.93 2008/08/01 01:13:10 roland Exp $
+ */
+
+ #include "defs.h"
+
+ #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
++# define kernel_dirent dirent
+ #endif
+
+ #ifdef LINUX