> Related question: is there a good reason to not include system-supplied
> ipmi.h and hardcode defines and typedefs right in the library source?
> The better way to not depend on kernel headers I thinking of is:

No, I was being lazy and forgot to go back and fix that :P

I'll try and work on this tomorrow, unless A.B. or others can look at it
sooner?

Al

> Put openipmi's ipmi.h under compat/ dir. Do:
> 
> #ifdef HAVE_LINUX_IPMI_H
> #include it
> #elif defined(HAVE_SYS_IPMI_H)
> #include <sys/ipmi.h> /* FBSD way */
> #else
> #include <compat/ipmi.h>
> #endif
> 
> Index: libfreeipmi/src/ipmi-openipmi-api.c
> ===================================================================
> RCS file: /sources/freeipmi/freeipmi/libfreeipmi/src/ipmi-openipmi-api.c,v
> retrieving revision 1.5
> diff -u -d -p -r1.5 ipmi-openipmi-api.c
> --- libfreeipmi/src/ipmi-openipmi-api.c       5 Sep 2006 05:56:49 -0000       
> 1.5
> +++ libfreeipmi/src/ipmi-openipmi-api.c       13 Dec 2006 18:04:32 -0000
> @@ -100,8 +100,13 @@ struct openipmi_recv
>  #define OPENIPMI_IOC_MAGIC             'i'
>  #define OPENIPMICTL_RECEIVE_MSG_TRUNC  _IOWR(OPENIPMI_IOC_MAGIC, 11, struct 
> openipmi_recv)
>  #define OPENIPMICTL_RECEIVE_MSG        _IOWR(OPENIPMI_IOC_MAGIC, 12, struct 
> openipmi_recv)
> +#if defined(__FreeBSD__)
> +#define OPENIPMICTL_SEND_COMMAND       _IOW(OPENIPMI_IOC_MAGIC,  13, struct 
> openipmi_req)
> +#define OPENIPMICTL_SET_MY_ADDRESS_CMD _IOW(OPENIPMI_IOC_MAGIC,  17, 
> unsigned int)
> +#else
>  #define OPENIPMICTL_SEND_COMMAND       _IOR(OPENIPMI_IOC_MAGIC,  13, struct 
> openipmi_req)
>  #define OPENIPMICTL_SET_MY_ADDRESS_CMD _IOR(OPENIPMI_IOC_MAGIC,  17, 
> unsigned int)
> +#endif
>  #define OPENIPMICTL_GET_MY_ADDRESS_CMD _IOR(OPENIPMI_IOC_MAGIC,  18, 
> unsigned int)
>  
>  static char * ipmi_openipmi_ctx_errmsg[] =
> 
>     wbr&w, dmitry.
-- 
Albert Chu
[EMAIL PROTECTED]
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory


_______________________________________________
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel

Reply via email to