[ofw] [ibmad] libibmad: add MAD_EXPORT to exported calls

Sean Hefty sean.hefty at intel.com
Thu Feb 12 23:31:31 PST 2009


From: Stan Smith <stan.smith at intel.com>

ibtracert and ibroute need xdump and smp_query_via exported
from the library.  Add MAD_EXPORT to the calls for Windows support.

Signed-off-by: Stan Smith <stan.smith at intel.com>
Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---

 libibmad/include/infiniband/mad.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libibmad/include/infiniband/mad.h b/libibmad/include/infiniband/mad.h
index bd62ec7..1aaaa1b 100644
--- a/libibmad/include/infiniband/mad.h
+++ b/libibmad/include/infiniband/mad.h
@@ -748,7 +748,7 @@ MAD_EXPORT uint8_t *smp_query(void *buf, ib_portid_t * id, unsigned attrid,
 			      unsigned mod, unsigned timeout);
 MAD_EXPORT uint8_t *smp_set(void *buf, ib_portid_t * id, unsigned attrid,
 			    unsigned mod, unsigned timeout);
-uint8_t *smp_query_via(void *buf, ib_portid_t * id, unsigned attrid,
+MAD_EXPORT uint8_t *smp_query_via(void *buf, ib_portid_t * id, unsigned attrid,
 		       unsigned mod, unsigned timeout, const void *srcport);
 uint8_t *smp_set_via(void *buf, ib_portid_t * id, unsigned attrid, unsigned mod,
 		     unsigned timeout, const void *srcport);
@@ -875,7 +875,7 @@ static inline uint64_t htonll(uint64_t x)
 	exit(-1); \
 } while(0)
 
-void xdump(FILE * file, char *msg, void *p, int size);
+MAD_EXPORT void xdump(FILE * file, char *msg, void *p, int size);
 
 END_C_DECLS
 #endif				/* _MAD_H_ */






More information about the ofw mailing list