[openib-general] [PATCH] Opensm - include changes for windows

Yael Kalka yael at mellanox.co.il
Mon Feb 13 05:19:03 PST 2006


Hi Hal,

The following patch changes some of the includes for the windows compilation.

Thanks,
Yael

Signed-off-by:  Yael Kalka <yael at mellanox.co.il>

Index: include/opensm/osm_log.h
===================================================================
--- include/opensm/osm_log.h    (revision 5380)
+++ include/opensm/osm_log.h    (working copy)
@@ -51,7 +51,9 @@
 #ifndef _OSM_LOG_H_
 #define _OSM_LOG_H_
 
+#ifndef __WIN__
 #include <syslog.h>
+#endif
 #include <complib/cl_log.h>
 #include <complib/cl_spinlock.h>
 #include <opensm/osm_base.h>
Index: osmtest/include/osmtest_base.h
===================================================================
--- osmtest/include/osmtest_base.h      (revision 5380)
+++ osmtest/include/osmtest_base.h      (working copy)
@@ -46,8 +46,10 @@
 #ifndef _OSMTEST_BASE_H_
 #define _OSMTEST_BASE_H_
 
-#ifndef WIN32
+#ifndef __WIN__
 #include <limits.h>
+#else
+#include <vendor/winosm_common.h>
 #endif
 
 #define OSMTEST_MAX_LINE_LEN   120




More information about the general mailing list