File libpsm2-include-ioctl_h.patch of Package libpsm2

commit 577cf495e26e35e3965b6c43a38ccd84bb10fa52
Author: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
Date:   Mon Nov 20 18:07:42 2017 +0100

    libpsm2 include ioctl_h
    
    Fix compilation issue by including ioctl.h
    
    Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>

diff --git psmi_wrappers.c psmi_wrappers.c
index ea857fc..f159787 100644
--- psmi_wrappers.c
+++ psmi_wrappers.c
@@ -55,6 +55,7 @@
 #include "opa_common.h"
 #include <unistd.h>
 #include "psmi_wrappers.h"
+#include <sys/ioctl.h>
 
 /* The following indirection wrappers for external functions
  * are only created if this is a mocking tests build
openSUSE Build Service is sponsored by