[ofw] [PATCH] uDAPL v2.0 Windows patch to fix IB_INVLAID_HANDLE name collision.

Sean Hefty sean.hefty at intel.com
Fri Feb 19 14:59:41 PST 2010


>diff U3 a/dapl/dapl/ibal/dapl_ibal_cm.c b/dapl/ibal/dapl_ibal_cm.c
>--- a/dapl/ibal/dapl_ibal_cm.c	Fri Feb 19 14:03:58 2010
>+++ b/dapl/ibal/dapl_ibal_cm.c	Fri Feb 19 14:15:22 2010
>@@ -37,6 +37,12 @@
> #define  DAPL_ATS_NAME              ATS_NAME
> #define  HCA_IPV6_ADDRESS_LENGTH    16
>
>+/* until dapl_ibal_util.h define of IB_INVALID_HANDLE which overlaps the
>+ * Windows ib_types.h typedef enu ib_api_status_t IB_INVALID_HANDLE is fixed.
>+ */
>+#undef IB_INVALID_HANDLE
>+#define DAPL_IB_INVALID_HANDLE NULL

How about just using NULL directly?





More information about the ofw mailing list