File tcmu-runner-remove-uio-include-for-iovec.patch of Package tcmu-runner

From: Lee Duncan <lduncan@suse.com>
Date: Wed Oct 25 14:45:04 PDT 2017
Subject: remove uio include for iovec

Newer versions of the kernel and glibc-devel cause
compiles of tcmu-runner to complain about duplicate
"struct iovec" definitions. This fixes that issue
by including files in the correct order.

Signed-off-by: Lee Duncan <lduncan@suse.com>
--- 
Index: tcmu-runner-1.3.0/consumer.c
===================================================================
--- tcmu-runner-1.3.0.orig/consumer.c
+++ tcmu-runner-1.3.0/consumer.c
@@ -34,6 +34,7 @@
 #include <sys/mman.h>
 #include <signal.h>
 #include <poll.h>
+#include <sys/uio.h>
 
 #include <stdint.h>
 #include <scsi/scsi.h>
Index: tcmu-runner-1.3.0/target_core_user_local.h
===================================================================
--- tcmu-runner-1.3.0.orig/target_core_user_local.h
+++ tcmu-runner-1.3.0/target_core_user_local.h
@@ -4,7 +4,6 @@
 /* This header will be used by application too */
 
 #include <linux/types.h>
-#include <linux/uio.h>
 
 #define TCMU_VERSION "2.0"
 
openSUSE Build Service is sponsored by