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