[openib-general] [PATCH] libibcm: Need to include stddef.h in cm.c for SLES10 compilations

Jack Morgenstein jackm at mellanox.co.il
Tue Aug 29 01:24:45 PDT 2006


Fix compilation on SLES10:
cm.c uses offsetof, so it must include stddef.h

Signed-off-by: Jack Morgenstein <jackm at mellanox.co.il>

Index: l/src/userspace/libibcm/src/cm.c
===================================================================
--- l/src/userspace/libibcm/src/cm.c	(revision 9128)
+++ l/src/userspace/libibcm/src/cm.c	(working copy)
@@ -44,6 +44,7 @@
 #include <errno.h>
 #include <unistd.h>
 #include <pthread.h>
+#include <stddef.h>
 
 #include <infiniband/cm.h>
 #include <infiniband/cm_abi.h>




More information about the general mailing list