fix FIOQSIZE in arm ioctl.h
authorSzabolcs Nagy <nsz@port70.net>
Sun, 3 Jul 2016 15:07:30 +0000 (17:07 +0200)
committerRich Felker <dalias@aerifal.cx>
Sun, 3 Jul 2016 18:54:35 +0000 (14:54 -0400)
arm ioctl.h is the same as the generic one except this macro,
so a workaround solution is used to avoid another ioctl.h copy.

arch/arm/bits/ioctl_fix.h [new file with mode: 0644]
arch/generic/bits/ioctl.h
arch/generic/bits/ioctl_fix.h [new file with mode: 0644]

diff --git a/arch/arm/bits/ioctl_fix.h b/arch/arm/bits/ioctl_fix.h
new file mode 100644 (file)
index 0000000..ebb383d
--- /dev/null
@@ -0,0 +1,2 @@
+#undef FIOQSIZE
+#define FIOQSIZE 0x545e
index 668d467ef1169645265db89a9c86a18f876e9091..c2035fc529124bb0ef98f811071355f0fd303f18 100644 (file)
@@ -200,3 +200,5 @@ struct winsize {
 
 #define SIOCDEVPRIVATE         0x89F0
 #define SIOCPROTOPRIVATE       0x89E0
+
+#include <bits/ioctl_fix.h>
diff --git a/arch/generic/bits/ioctl_fix.h b/arch/generic/bits/ioctl_fix.h
new file mode 100644 (file)
index 0000000..e69de29