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>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
#include "imbapi.h"
|
#include "imbapi.h"
|
||||||
|
#include <asm/socket.h>
|
||||||
|
|
||||||
#ifdef SCO_UW
|
#ifdef SCO_UW
|
||||||
#define NO_MACRO_ARGS 1
|
#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"
|
#define IMB_DEVICE "/dev/instru/mismic"
|
||||||
#else
|
#else
|
||||||
#define IMB_DEVICE "/dev/imb"
|
#define IMB_DEVICE "/dev/imb"
|
||||||
#define PAGESIZE EXEC_PAGESIZE
|
#ifndef PAGESIZE
|
||||||
|
# define PAGESIZE EXEC_PAGESIZE
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*Just to make the DEBUG code cleaner.*/
|
/*Just to make the DEBUG code cleaner.*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user