$OpenBSD: patch-lib_device_c,v 1.1 2010/05/20 15:41:33 naddy Exp $ --- lib/device.c.orig Thu May 20 09:39:45 2010 +++ lib/device.c Thu May 20 09:40:43 2010 @@ -115,6 +115,9 @@ get_kfreebsd_version () # include /* ioctl */ # include # include /* CDIOCCLRDEBUG */ +# if defined(__OpenBSD__) +# include +# endif # if defined(__FreeBSD_kernel__) # include # if __FreeBSD_kernel_version >= 500040