[openib-general] [PATCH 9/13] osm: port to WinIB stack : opensm/osm_prtn.c

Eitan Zahavi eitan at mellanox.co.il
Sun Sep 17 08:59:48 PDT 2006


Hi Hal

Required cl_debug.h for PRIx64
Also map snprintf to _snprintf and stat to _stat

Thanks

Eitan

Signed-off-by:  Eitan Zahavi <eitan at mellanox.co.il>

Index: opensm/osm_prtn.c
===================================================================
--- opensm/osm_prtn.c	(revision 9502)
+++ opensm/osm_prtn.c	(working copy)
@@ -53,7 +53,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <sys/stat.h>
-
+#include <complib/cl_debug.h>
 #include <iba/ib_types.h>
 #include <opensm/osm_opensm.h>
 #include <opensm/osm_partition.h>
@@ -61,6 +61,10 @@
 #include <opensm/osm_sa.h>
 #include <opensm/osm_multicast.h>
 
+#ifdef WIN32
+#define snprintf _snprintf
+#define stat _stat
+#endif
 
 extern int osm_prtn_config_parse_file(osm_log_t * const p_log,
 				      osm_subn_t * const p_subn,





More information about the general mailing list