]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
this should fix compilation on weird kernel 2.6.x installations.
authorDirk Mueller <dmuell@gmx.net>
Wed, 19 Nov 2003 22:07:14 +0000 (22:07 +0000)
committerDirk Mueller <dmuell@gmx.net>
Wed, 19 Nov 2003 22:07:14 +0000 (22:07 +0000)
CCMAIL: 68360@bugs.kde.org

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2052

coregrind/vg_syscalls.c
coregrind/vg_unsafe.h
include/vg_kerneliface.h

index 2d40d681e29c80f2698ac20850ec495a6cd56532..a3d48c4662085bdef246884b615b719aa5fea75f 100644 (file)
@@ -2487,7 +2487,7 @@ PRE(ioctl)
       break;
 #       endif
 
-   case IIOCGETCPS:
+   case VKI_IIOCGETCPS:
       /* In early 2.4 kernels, ISDN_MAX_CHANNELS was only defined
        * when KERNEL was. I never saw a larger value than 64 though */
 #              ifndef ISDN_MAX_CHANNELS
@@ -2497,7 +2497,7 @@ PRE(ioctl)
                     ISDN_MAX_CHANNELS 
                     * 2 * sizeof(unsigned long) );
       break;
-   case IIOCNETGPN:
+   case VKI_IIOCNETGPN:
       SYSCALL_TRACK( pre_mem_read, tid, "ioctl(IIOCNETGPN)",
                     (UInt)&((isdn_net_ioctl_phone *)arg3)->name,
                     sizeof(((isdn_net_ioctl_phone *)arg3)->name) );
@@ -2886,7 +2886,7 @@ POST(ioctl)
       break;
 #       endif
 
-   case IIOCGETCPS:
+   case VKI_IIOCGETCPS:
       /* In early 2.4 kernels, ISDN_MAX_CHANNELS was only defined
        * when KERNEL was. I never saw a larger value than 64 though */
 #              ifndef ISDN_MAX_CHANNELS
@@ -2896,7 +2896,7 @@ POST(ioctl)
         VG_TRACK( post_mem_write, arg3, ISDN_MAX_CHANNELS 
                   * 2 * sizeof(unsigned long) );
       break;
-   case IIOCNETGPN:
+   case VKI_IIOCNETGPN:
       if (res == 0)
         VG_TRACK( post_mem_write, arg3, sizeof(isdn_net_ioctl_phone) );
       break;
index 64d16300323a552b9255f776bc124cb004edfd19..0ad6a60db27079e78ad4f323c001e5b98b55a809 100644 (file)
@@ -57,7 +57,6 @@
 #include <linux/msg.h>    /* for struct msgbuf */
 #include <linux/sem.h>    /* for struct sembuf */
 
-#include <linux/isdn.h>   /* for ISDN ioctls */
 #include <scsi/sg.h>      /* for the SG_* ioctls */
 #include <sched.h>        /* for struct sched_param */
 #include <linux/sysctl.h> /* for struct __sysctl_args */
index 55d66b396b43cb3202da8198b6df04b5f8c81425..30b16f2763b6581c15c4adc22197480423579f12 100644 (file)
@@ -371,6 +371,19 @@ struct vki_ucontext {
 
 #define VKI_ERESTARTSYS            512     /* Restart the syscall */
 
+/* Copied from linux/isdn.h */
+
+#define VKI_IIOCGETCPS  _IO( 'I',21 )
+#define VKI_IIOCNETGPN  _IO( 'I',34 )
+
+#define ISDN_MSNLEN          32
+
+typedef struct {
+    char name[ 10 ];
+    char phone[ ISDN_MSNLEN ];
+    int  outgoing;
+} isdn_net_ioctl_phone;
+
 
 /* Gawd ... hack ... */