[openib-general] [PATCH] osm: trivial missing header files fix
Eitan Zahavi
eitan at mellanox.co.il
Mon Jun 5 05:51:53 PDT 2006
Hi Hal
Cleaning up compilation warnings I found there missing includes in
various sources.
Eitan
Signed-off-by: Eitan Zahavi <eitan at mellanox.co.il>
Index: include/vendor/osm_vendor_mlx_txn.h
===================================================================
--- include/vendor/osm_vendor_mlx_txn.h (revision 7542)
+++ include/vendor/osm_vendor_mlx_txn.h (working copy)
@@ -37,6 +37,9 @@
#ifndef _OSMV_TXN_H_
#define _OSMV_TXN_H_
+#include <sys/types.h>
+#include <unistd.h>
+
#include <complib/cl_qmap.h>
#include <opensm/osm_madw.h>
#include <complib/cl_event_wheel.h>
Index: libvendor/osm_vendor_mlx_hca.c
===================================================================
--- libvendor/osm_vendor_mlx_hca.c (revision 7542)
+++ libvendor/osm_vendor_mlx_hca.c (working copy)
@@ -39,6 +39,7 @@
# include <config.h>
#endif /* HAVE_CONFIG_H */
+#include <stdlib.h>
#include <string.h>
#if defined(OSM_VENDOR_INTF_MTL) | defined(OSM_VENDOR_INTF_TS)
#undef IN
Index: libvendor/osm_vendor_mlx_hca_sim.c
===================================================================
--- libvendor/osm_vendor_mlx_hca_sim.c (revision 7542)
+++ libvendor/osm_vendor_mlx_hca_sim.c (working copy)
@@ -43,6 +43,7 @@
#undef IN
#undef OUT
+#include <unistd.h>
#include <vendor/osm_vendor_api.h>
#include <complib/cl_memory.h>
#include <opensm/osm_log.h>
Index: opensm/osm_node_info_rcv.c
===================================================================
--- opensm/osm_node_info_rcv.c (revision 7670)
+++ opensm/osm_node_info_rcv.c (working copy)
@@ -55,6 +55,7 @@
# include <config.h>
#endif /* HAVE_CONFIG_H */
+#include <stdlib.h>
#include <string.h>
#include <iba/ib_types.h>
#include <complib/cl_qmap.h>
Index: opensm/osm_drop_mgr.c
===================================================================
--- opensm/osm_drop_mgr.c (revision 7670)
+++ opensm/osm_drop_mgr.c (working copy)
@@ -51,6 +51,7 @@
# include <config.h>
#endif /* HAVE_CONFIG_H */
+#include <stdlib.h>
#include <string.h>
#include <iba/ib_types.h>
#include <complib/cl_qmap.h>
More information about the general
mailing list