Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 20 years ago
parent
commit
9e8abdc91d
2 changed files with 40 additions and 0 deletions
  1. +18
    -0
      package/rene/valgrind/linux-2.6.9.patch
  2. +22
    -0
      package/rene/valgrind/linux-asm-byteorder_h.patch

+ 18
- 0
package/rene/valgrind/linux-2.6.9.patch

@ -0,0 +1,18 @@
--- valgrind-2.2.0/coregrind/vg_unsafe.h 2004-08-29 21:02:28.000000000 +0000
+++ valgrind-2.2.0-p/coregrind/vg_unsafe.h 2004-10-24 08:47:50.959307152 +0000
@@ -47,7 +47,14 @@
#include <sys/socket.h> /* for struct msghdr */
#include <linux/sockios.h>/* for SIOCOUTQ */
#include <sys/un.h> /* for sockaddr_un */
-#include <net/if.h> /* for struct ifreq et al */
+
+/* for linux-2.6.9, from linux/types.h */
+# include <asm/types.h>
+# ifndef pgoff_t
+# define pgoff_t unsigned long
+# endif
+
+/* #include <net/if.h> /* for struct ifreq et al */
#include <net/if_arp.h> /* for struct arpreq */
#include <net/route.h> /* for struct rtentry */
#ifdef HAVE_LINUX_COMPILER_H

+ 22
- 0
package/rene/valgrind/linux-asm-byteorder_h.patch

@ -0,0 +1,22 @@
--- valgrind-2.2.0/coregrind/vg_unsafe.h 2004-08-29 21:02:28.000000000 +0000
+++ valgrind-2.2.0-p/coregrind/vg_unsafe.h 2004-10-24 08:47:50.959307152 +0000
@@ -60,6 +67,19 @@
#include <scsi/sg.h> /* for the SG_* ioctls */
#include <sched.h> /* for struct sched_param */
#include <linux/sysctl.h> /* for struct __sysctl_args */
+
+#ifdef __CHECKER__
+#define __bitwise __attribute__((bitwise))
+#else
+#define __bitwise
+#endif
+#define __le16 __bitwise __u16
+#define __be16 __bitwise __u16
+#define __le32 __bitwise __u32
+#define __be32 __bitwise __u32
+#define __le64 __bitwise __u64
+#define __be64 __bitwise __u64
+
#include <linux/cdrom.h> /* for cd-rom ioctls */
#include <signal.h> /* for siginfo_t */
#include <linux/timex.h> /* for adjtimex */

Loading…
Cancel
Save