aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index 38638a18db..a351737877 100644
--- a/io.c
+++ b/io.c
@@ -7908,6 +7908,8 @@ ioctl_narg_len(int cmd)
#endif
#ifdef IOCPARM_LEN
len = IOCPARM_LEN(cmd); /* on BSDish systems we're safe */
+#elif defined(_IOC_SIZE)
+ len = _IOC_SIZE(cmd);
#else
len = 256; /* otherwise guess at what's safe */
#endif