d01aaa
Binary files libiscsi-1.18.0/.git/index and new/.git/index differ
d01aaa
diff -rup libiscsi-1.18.0/lib/iser.c new/lib/iser.c
d01aaa
--- libiscsi-1.18.0/lib/iser.c	2018-04-26 09:51:53.869133618 -0400
d01aaa
+++ new/lib/iser.c	2018-04-26 10:03:45.163899456 -0400
d01aaa
@@ -32,6 +32,20 @@
d01aaa
 #include <semaphore.h>
d01aaa
 #include <poll.h>
d01aaa
 
d01aaa
+
d01aaa
+#ifndef container_of
d01aaa
+/**
d01aaa
+  * container_of - cast a member of a structure out to the containing structure
d01aaa
+  * @ptr:        the pointer to the member.
d01aaa
+  * @type:       the type of the container struct this is embedded in.
d01aaa
+  * @member:     the name of the member within the struct.
d01aaa
+  *
d01aaa
+ */
d01aaa
+#define container_of(ptr, type, member) \
d01aaa
+    ((type *) ((uint8_t *)(ptr) - offsetof(type, member)))
d01aaa
+#endif
d01aaa
+
d01aaa
+
d01aaa
 #ifdef __linux
d01aaa
 
d01aaa
 static int cq_handle(struct iser_conn *iser_conn);