$FreeBSD: ports/sysutils/mbmon/files/patch-getMB-smb_ioctl.c,v 1.1 2005/12/16 16:23:40 ru Exp $ --- getMB-smb_ioctl.c.orig Sat Jul 5 18:15:24 2003 +++ getMB-smb_ioctl.c Fri Dec 16 17:56:54 2005 @@ -5,6 +5,7 @@ #ifdef HAVE_SMBUS /* assume SMBus ioctl support, only for FreeBSD */ +#include #include #include #include @@ -13,7 +14,11 @@ #include #include +#if __FreeBSD_version >= 500000 +#include +#else #include +#endif #include "methods.h"