aboutsummaryrefslogtreecommitdiff
path: root/linux-user/ioctls.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-01-04 13:40:42 -1000
committerRichard Henderson <richard.henderson@linaro.org>2021-01-07 05:09:06 -1000
commit655a650aca29c15f782097aac0212f9442e372c1 (patch)
treebfb80a3891c0fe0f711a68987a808dbc55a809c2 /linux-user/ioctls.h
parent470dd6bd360782f5137f7e3376af6a44658eb1d3 (diff)
downloadqemu-655a650aca29c15f782097aac0212f9442e372c1.zip
qemu-655a650aca29c15f782097aac0212f9442e372c1.tar.gz
qemu-655a650aca29c15f782097aac0212f9442e372c1.tar.bz2
linux-user: Conditionalize TUNSETVNETLE
This fixes the build for older ppc64 kernel headers. Fixes: 6addf06a3c4 Reviewed-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/ioctls.h')
-rw-r--r--linux-user/ioctls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index 661b5da..7193c3b 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -748,8 +748,10 @@
IOCTL(TUNSETQUEUE, IOC_W, MK_PTR(MK_STRUCT(STRUCT_short_ifreq)))
IOCTL(TUNSETIFINDEX , IOC_W, MK_PTR(TYPE_INT))
/* TUNGETFILTER is not supported: see TUNATTACHFILTER. */
+#ifdef TUNSETVNETLE
IOCTL(TUNSETVNETLE, IOC_W, MK_PTR(TYPE_INT))
IOCTL(TUNGETVNETLE, IOC_R, MK_PTR(TYPE_INT))
+#endif
#ifdef TUNSETVNETBE
IOCTL(TUNSETVNETBE, IOC_W, MK_PTR(TYPE_INT))
IOCTL(TUNGETVNETBE, IOC_R, MK_PTR(TYPE_INT))