$OpenBSD: patch-libfreeipmi_src_ipmi-openipmi-api_c,v 1.1.1.1 2007/10/25 18:17:02 wilfried Exp $ --- libfreeipmi/src/ipmi-openipmi-api.c.orig Sat Jun 2 20:18:29 2007 +++ libfreeipmi/src/ipmi-openipmi-api.c Tue Oct 23 16:37:57 2007 @@ -107,7 +107,7 @@ struct ipmi_recv #define IPMI_IOC_MAGIC 'i' #define IPMICTL_RECEIVE_MSG_TRUNC _IOWR(IPMI_IOC_MAGIC, 11, struct ipmi_recv) #define IPMICTL_RECEIVE_MSG _IOWR(IPMI_IOC_MAGIC, 12, struct ipmi_recv) -#if defined(__FreeBSD__) +#ifndef __LINUX__ #define IPMICTL_SEND_COMMAND _IOW(IPMI_IOC_MAGIC, 13, struct ipmi_req) #define IPMICTL_SET_MY_ADDRESS_CMD _IOW(IPMI_IOC_MAGIC, 17, unsigned int) #else