Merge pull request #2870 from alihanozturk/master

dmapi add patch
This commit is contained in:
Alihan Öztürk
2017-02-18 11:49:10 +02:00
committed by GitHub
3 changed files with 28 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ from pisi.actionsapi import get
def setup():
shelltools.export("OPTIMIZER", get.CFLAGS())
shelltools.export("DEBUG", "-DNDEBUG")
pisitools.cflags.add("-fPIC")
autotools.autoconf()
autotools.configure("--libexecdir=/usr/lib \
@@ -0,0 +1,24 @@
From: Jeff Mahoney <jeffm@suse.com>
Subject: dmapi: add missing includes to handle2path
The update to xfsprogs 4.2.0 removed some includes from its own headers, so
those headers need to be added manually to dmapi.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---
libdm/dm_handle2path.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/libdm/dm_handle2path.c
+++ b/libdm/dm_handle2path.c
@@ -16,6 +16,10 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <string.h>
+#include <unistd.h>
#include <dmapi.h>
#include <dmapi_kern.h>
#include "dmapi_lib.h"
+3
View File
@@ -17,6 +17,9 @@
<Dependency>xfsprogs-devel</Dependency>
<Dependency>libutil-linux-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">dmapi-add-missing-includes-to-handle2path.patch</Patch>
</Patches>
</Source>
<Package>