mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID:373 - Fix compilation of IMB on Windows
Commit fixes compilation of IMB driver under Cygwin. * don't redefine PAGESIZE if defined already * fix missing include of <asm/socket.h> - required by IO calls
This commit is contained in:
parent
ce861658c0
commit
531569ec62
@ -97,6 +97,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <string.h>
|
||||
#endif
|
||||
#include "imbapi.h"
|
||||
#include <asm/socket.h>
|
||||
|
||||
#ifdef SCO_UW
|
||||
#define NO_MACRO_ARGS 1
|
||||
@ -104,7 +105,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#define IMB_DEVICE "/dev/instru/mismic"
|
||||
#else
|
||||
#define IMB_DEVICE "/dev/imb"
|
||||
#define PAGESIZE EXEC_PAGESIZE
|
||||
#ifndef PAGESIZE
|
||||
# define PAGESIZE EXEC_PAGESIZE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*Just to make the DEBUG code cleaner.*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user