aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-05-31 09:48:13 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-05-31 10:27:59 +0200
commit1bb7f78bfc1503e5388648b1ae8022c3378325bd (patch)
treecf6a4b7c69918119f71f1d4fdd6ac96fa7220aed
parent4554610bde56b0b7f140f6833fc44ebfb7cd7310 (diff)
downloadbuildroot-1bb7f78bfc1503e5388648b1ae8022c3378325bd.tar.gz
buildroot-1bb7f78bfc1503e5388648b1ae8022c3378325bd.tar.bz2
package/ell: fix build with uclibc
Fixes: - http://autobuild.buildroot.org/results/444c9deb728fb041e560d940145f96cc4f455080 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/ell/0001-ell-ecc.h-fix-build-with-uclibc.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/ell/0001-ell-ecc.h-fix-build-with-uclibc.patch b/package/ell/0001-ell-ecc.h-fix-build-with-uclibc.patch
new file mode 100644
index 0000000000..f64e3d9a87
--- /dev/null
+++ b/package/ell/0001-ell-ecc.h-fix-build-with-uclibc.patch
@@ -0,0 +1,31 @@
+From 3ca3044859f40d7c595daf0a93393352e4999fb7 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Thu, 30 May 2019 23:46:27 +0200
+Subject: [PATCH] ell/ecc.h: fix build with uclibc
+
+ssize_t is defined in sys/types.h
+
+Fixes:
+ - http://autobuild.buildroot.org/results/444c9deb728fb041e560d940145f96cc4f455080
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ ell/ecc.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/ell/ecc.h b/ell/ecc.h
+index 26a5889..65c49e8 100644
+--- a/ell/ecc.h
++++ b/ell/ecc.h
+@@ -27,6 +27,8 @@
+ extern "C" {
+ #endif
+
++#include <sys/types.h> // for ssize_t
++
+ #define L_ECC_MAX_DIGITS 6
+ #define L_ECC_SCALAR_MAX_BYTES L_ECC_MAX_DIGITS * 8
+ #define L_ECC_POINT_MAX_BYTES L_ECC_SCALAR_MAX_BYTES * 2
+--
+2.20.1
+