[openib-general] [PATCH] Opensm - osm_reg_sig_handler in Windows

Yael Kalka yael at mellanox.co.il
Mon Feb 6 02:15:03 PST 2006


Hi Hal,

The osm_reg_sig_handler function is not supported in Windows. 
The following patch adds the function only if non-Windows stack.

Thanks,
Yael

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

Index: include/opensm/osm_opensm.h
===================================================================
--- include/opensm/osm_opensm.h (revision 5307)
+++ include/opensm/osm_opensm.h (working copy)
@@ -394,6 +394,7 @@ extern volatile int osm_exit_flag;
 *  Set to one to cause all threads to leave 
 *********/
 
+#ifndef __WIN__
 /****f* OpenSM: OpenSM/osm_reg_sig_handler
 * NAME
 *       osm_reg_sig_handler
@@ -417,6 +418,7 @@ IN osm_opensm_t* const p_osm);
 *
 * SEE ALSO
 *********/
+#endif /* __WIN__ */
 
 END_C_DECLS
 
Index: opensm/osm_opensm.c
===================================================================
--- opensm/osm_opensm.c (revision 5307)
+++ opensm/osm_opensm.c (working copy)
@@ -151,6 +151,7 @@ osm_opensm_create_mcgroups(
 /**********************************************************************
  * SHUT DOWN IS CONTROLLED BY A GLOBAL EXIT FLAG
  **********************************************************************/
+#ifndef __WIN__
 static osm_opensm_t *__p_osm_to_signal;
 
 void
@@ -191,6 +192,7 @@ osm_reg_sig_handler(
 
    return;
 }
+#endif /* __WIN__ */
 
 /**********************************************************************
  **********************************************************************/




More information about the general mailing list