From 531569ec62e70007faa0f472720965807a532557 Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Tue, 17 Feb 2015 15:23:30 +0100 Subject: [PATCH] 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 - required by IO calls --- src/plugins/imb/imbapi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/imb/imbapi.c b/src/plugins/imb/imbapi.c index 111df62..899c47a 100644 --- a/src/plugins/imb/imbapi.c +++ b/src/plugins/imb/imbapi.c @@ -97,6 +97,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #endif #include "imbapi.h" +#include #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.*/