And now stdlib.h is missing

This commit is contained in:
Bastien Nocera 2018-07-17 16:15:04 +02:00
parent da52c3aa05
commit 5aa15c5492
3 changed files with 28 additions and 26 deletions

View File

@ -0,0 +1,27 @@
From 626b0f1a8fbf2e3acf8f3d2de411141bc3f6e913 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Tue, 17 Jul 2018 16:02:26 +0200
Subject: [PATCH] lib: Include more standard headers for drivers to use
Such as string.h and stdlib.h, to be able to compile on older
toolchains like that of Fedora 27.
---
libfprint/drivers_api.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libfprint/drivers_api.h b/libfprint/drivers_api.h
index 2679c77..cc844cd 100644
--- a/libfprint/drivers_api.h
+++ b/libfprint/drivers_api.h
@@ -30,6 +30,8 @@
#include <stdint.h>
#include <errno.h>
+#include <string.h>
+#include <stdlib.h>
#include <glib.h>
#include <libusb.h>
--
2.17.1

View File

@ -1,25 +0,0 @@
From f95445e5301945dd6c0427d985a64abd3c686545 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Tue, 17 Jul 2018 16:02:26 +0200
Subject: [PATCH] lib: Include <string.h> for drivers to use
To be able to compile on older toolchains like that of Fedora 27.
---
libfprint/drivers_api.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libfprint/drivers_api.h b/libfprint/drivers_api.h
index 2679c77..0d99d51 100644
--- a/libfprint/drivers_api.h
+++ b/libfprint/drivers_api.h
@@ -30,6 +30,7 @@
#include <stdint.h>
#include <errno.h>
+#include <string.h>
#include <glib.h>
#include <libusb.h>
--
2.17.1

View File

@ -14,7 +14,7 @@ BuildRequires: libusb1-devel glib2-devel nss-devel pixman-devel
BuildRequires: systemd
BuildRequires: gtk-doc meson git
Patch0: 0001-lib-Include-string.h-for-drivers-to-use.patch
Patch0: 0001-lib-Include-more-standard-headers-for-drivers-to-use.patch
%description
libfprint offers support for consumer fingerprint reader devices.