[openib-general] [PATCH] osm: port to WinIB stack - moving win-specific to config.h

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Wed Oct 18 09:15:27 PDT 2006


Hi Hal

As we discussed previously, I've added config.h in
windows, and removed windows-specific defines from 
the common OSM files:
	opensm/osm_log.c
	opensm/osm_prtn.c
	opensm/osm_subnet.c

--
Yevgeny

Signed-off-by:  Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
 
Index: opensm/osm_log.c
===================================================================
--- opensm/osm_log.c	(revision 9869)
+++ opensm/osm_log.c	(working copy)
@@ -96,10 +96,6 @@ static void truncate_log_file(osm_log_t*
 
 #else /* Windows */
 
-#define fstat _fstat
-#define stat _stat
-#define fileno _fileno
-
 static void truncate_log_file(osm_log_t* const p_log)
 {
 	fprintf(stderr, "truncate_log_file: cannot truncate on windows system (yet)\n");
Index: opensm/osm_prtn.c
===================================================================
--- opensm/osm_prtn.c	(revision 9869)
+++ opensm/osm_prtn.c	(working copy)
@@ -61,11 +61,6 @@
 #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,
 				      const char *file_name);
Index: opensm/osm_subnet.c
===================================================================
--- opensm/osm_subnet.c	(revision 9869)
+++ opensm/osm_subnet.c	(working copy)
@@ -658,10 +658,6 @@ __osm_subn_opts_unpack_charp(
   }
 }
 
-#ifdef WIN32
-#define snprintf _snprintf
-#endif
-
 /**********************************************************************
  **********************************************************************/
 static void




More information about the general mailing list