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:
Zdenek Styblik 2012-09-28 18:47:01 +00:00
parent 23a5477d6e
commit 6011359cb3
3 changed files with 12 additions and 0 deletions

View File

@ -216,6 +216,10 @@ AC_PREPROC_IFELSE([#include <linux/compiler.h>],
CPPFLAGS=$ORIG_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_DEFINE(HAVE_OPENIPMI_H, [1],
[Define to 1 if you have the <linux/ipmi.h> header file.])],

View File

@ -46,6 +46,10 @@
# include <config.h>
#endif
#if defined(HAVE_SYS_IOCCOM_H)
# include <sys/ioccom.h>
#endif
#ifdef HAVE_PATHS_H
# include <paths.h>
#endif

View File

@ -49,6 +49,10 @@
# include <config.h>
#endif
#if defined(HAVE_SYS_IOCCOM_H)
# include <sys/ioccom.h>
#endif
#if defined(HAVE_OPENIPMI_H)
# if defined(HAVE_LINUX_COMPILER_H)
# include <linux/compiler.h>