rsocket.c wasn't passing compilation as of missing definition for the
container_of macro, fix it. Reported-by: Eyal Salamon <esalomon@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
static int abi_ver = RDMA_USER_CM_MAX_ABI_VERSION;
int af_ib_support;
-#ifndef container_of
-#define container_of(ptr, type, field) \
- ((type *) ((void *)ptr - offsetof(type, field)))
-#endif
-
static void ucma_cleanup(void)
{
ucma_ib_cleanup();
#define max(a, b) ((a) > (b) ? a : b)
#define min(a, b) ((a) < (b) ? a : b)
+#ifndef container_of
+#define container_of(ptr, type, field) \
+ ((type *) ((void *)ptr - offsetof(type, field)))
+#endif
+
+
/*
* Fast synchronization for low contention locking.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
+#include <stddef.h>
#include <string.h>
#include <netinet/in.h>
#include <netinet/tcp.h>