summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sys/ioctl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/ioctl.h b/sys/sys/ioctl.h
index 4888df7..c18b22d 100644
--- a/sys/sys/ioctl.h
+++ b/sys/sys/ioctl.h
@@ -43,8 +43,10 @@
#define _SYS_IOCTL_H_
#ifdef _KERNEL
+#if __GNUC__
#warning "Don't #include ioctl.h in the kernel. Include xxxio.h instead."
#endif
+#endif
#include <sys/ttycom.h>
OpenPOWER on IntegriCloud