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:
Zdenek Styblik 2015-02-17 15:23:30 +01:00
parent ce861658c0
commit 531569ec62

View File

@ -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,8 +105,10 @@ 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"
#ifndef PAGESIZE
# define PAGESIZE EXEC_PAGESIZE # define PAGESIZE EXEC_PAGESIZE
#endif #endif
#endif
/*Just to make the DEBUG code cleaner.*/ /*Just to make the DEBUG code cleaner.*/
#ifndef NO_MACRO_ARGS #ifndef NO_MACRO_ARGS