ID: 3608760 - Add bswap.h to ipmi_chassis.c and ipmi_pef.c

ID: 3564701 - ipmitool 1.8.12 doesn't build on big endian architectures

Compilation would fail on big endian architecture because BSWAP_32 was not
defined in 'ipmi_chassis.c' and 'ipmi_pef.c'.

The problem was '#include <ipmitool/bswap.h>' depended on WORDS_BIGENDIAN which
comes from '<config.h>'. However, none of the previous header files
would include '<config.h>', so it remained undefined.

'bswap.h' gets included unconditionally now.

Commit for Dan Gora
This commit is contained in:
Zdenek Styblik 2013-04-25 07:34:44 +00:00
parent fa5bdb2f3d
commit c72afa37ee
2 changed files with 2 additions and 8 deletions

View File

@ -35,10 +35,7 @@
#include <stdio.h>
#include <time.h>
#if WORDS_BIGENDIAN
#include <ipmitool/bswap.h>
#endif
#include <ipmitool/helper.h>
#include <ipmitool/ipmi.h>
#include <ipmitool/log.h>

View File

@ -34,10 +34,7 @@
#include <math.h>
#include <time.h>
#if WORDS_BIGENDIAN
#include <ipmitool/bswap.h>
#endif
#include <ipmitool/helper.h>
#include <ipmitool/log.h>
#include <ipmitool/ipmi.h>