--- drivers/lirc.h.org	2008-01-12 15:57:57.000000000 -0600
+++ drivers/lirc.h	2010-01-21 10:03:23.000000000 -0600
@@ -8,7 +8,7 @@
 #include <linux/ioctl.h>
 #else
 #include <sys/types.h>
-#if defined(__NetBSD__)
+#if defined(__NetBSD__) || defined(__APPLE__)
 #include <sys/ioctl.h>
 #endif
 typedef u_int32_t __u32;
