summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sys/ioccom.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/sys/ioccom.h b/sys/sys/ioccom.h
index c6e00df..b767e57 100644
--- a/sys/sys/ioccom.h
+++ b/sys/sys/ioccom.h
@@ -67,7 +67,12 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
-int ioctl(int, unsigned long, ...);
+/*
+ * use parens around the ioctl so that people can define ioctl as a macro.
+ * Note: This will go away in the future, as soon as the current abusers
+ * have been fixed.
+ */
+int (ioctl)(int, unsigned long, ...);
__END_DECLS
#endif
OpenPOWER on IntegriCloud