mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID: 3571153 - OpenIPMI/ipmievd fails to compile on Solaris
Commit fixes compilation problems on Solaris. These were caused by missing header file, <sys/ioccom.h>, which defines _IO* macros.
This commit is contained in:
parent
23a5477d6e
commit
6011359cb3
@ -216,6 +216,10 @@ AC_PREPROC_IFELSE([#include <linux/compiler.h>],
|
|||||||
CPPFLAGS=$ORIG_CPPFLAGS
|
CPPFLAGS=$ORIG_CPPFLAGS
|
||||||
AC_SUBST(CPPFLAGS)
|
AC_SUBST(CPPFLAGS)
|
||||||
|
|
||||||
|
AC_CHECK_HEADER([sys/ioccom.h],
|
||||||
|
[AC_DEFINE(HAVE_SYS_IOCCOM_H, [1],
|
||||||
|
[Define to 1 if you have the <sys/ioccom.h> header file.])])
|
||||||
|
|
||||||
AC_CHECK_HEADER([linux/ipmi.h],
|
AC_CHECK_HEADER([linux/ipmi.h],
|
||||||
[AC_DEFINE(HAVE_OPENIPMI_H, [1],
|
[AC_DEFINE(HAVE_OPENIPMI_H, [1],
|
||||||
[Define to 1 if you have the <linux/ipmi.h> header file.])],
|
[Define to 1 if you have the <linux/ipmi.h> header file.])],
|
||||||
|
@ -46,6 +46,10 @@
|
|||||||
# include <config.h>
|
# include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_SYS_IOCCOM_H)
|
||||||
|
# include <sys/ioccom.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_PATHS_H
|
#ifdef HAVE_PATHS_H
|
||||||
# include <paths.h>
|
# include <paths.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -49,6 +49,10 @@
|
|||||||
# include <config.h>
|
# include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_SYS_IOCCOM_H)
|
||||||
|
# include <sys/ioccom.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_OPENIPMI_H)
|
#if defined(HAVE_OPENIPMI_H)
|
||||||
# if defined(HAVE_LINUX_COMPILER_H)
|
# if defined(HAVE_LINUX_COMPILER_H)
|
||||||
# include <linux/compiler.h>
|
# include <linux/compiler.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user