about summary refs log tree commit diff
path: root/arch/mips/bits/ioctl.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-08-07 19:19:21 -0400
committerRich Felker <dalias@aerifal.cx>2012-08-07 19:19:21 -0400
commitff02f94e2d3a1e96ffc1918abd06e09ddd11fd06 (patch)
treed5f80d89297235435b9116c418217d946a865163 /arch/mips/bits/ioctl.h
parent6ecff18cc574b766c683a8a189fcbc3165935df6 (diff)
downloadmusl-ff02f94e2d3a1e96ffc1918abd06e09ddd11fd06.tar.gz
musl-ff02f94e2d3a1e96ffc1918abd06e09ddd11fd06.tar.xz
musl-ff02f94e2d3a1e96ffc1918abd06e09ddd11fd06.zip
fix another mips gratuitous-incompatibility bug: ioctl numbers
Diffstat (limited to 'arch/mips/bits/ioctl.h')
-rw-r--r--arch/mips/bits/ioctl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/bits/ioctl.h b/arch/mips/bits/ioctl.h
index c86488d8..3d60c1a9 100644
--- a/arch/mips/bits/ioctl.h
+++ b/arch/mips/bits/ioctl.h
@@ -1,7 +1,7 @@
 #define _IOC(a,b,c,d) ( ((a)<<29) | ((b)<<8) | (c) | ((d)<<16) )
 #define _IOC_NONE  1U
-#define _IOC_WRITE 2U
-#define _IOC_READ  4U
+#define _IOC_READ  2U
+#define _IOC_WRITE 4U
 
 #define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0)
 #define _IOW(a,b,c) _IOC(1,(a),(b),sizeof(c))