summaryrefslogtreecommitdiff
path: root/net/tap-linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/tap-linux.h')
-rw-r--r--net/tap-linux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/tap-linux.h b/net/tap-linux.h
index d81c65081f..f1a0fce176 100644
--- a/net/tap-linux.h
+++ b/net/tap-linux.h
@@ -17,6 +17,8 @@
#define QEMU_TAP_H
#include <stdint.h>
+#ifdef __LINUX__
+
#include <linux/ioctl.h>
/* Ioctl defines */
@@ -26,6 +28,8 @@
#define TUNGETIFF _IOR('T', 210, unsigned int)
#define TUNSETSNDBUF _IOW('T', 212, int)
+#endif
+
/* TUNSETIFF ifr flags */
#define IFF_TAP 0x0002
#define IFF_NO_PI 0x1000