[packages/libeap-ikev2] dont_redefine_bool.patch added
jajcus
jajcus at pld-linux.org
Tue Oct 9 15:30:48 CEST 2018
commit 8899a7bf65c6364765919c6b3c08bb9feb057293
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Tue Oct 9 15:30:13 2018 +0200
dont_redefine_bool.patch added
fixes freeradius-server-3.0.x build problem
Release: 5
dont_redefine_bool.patch | 13 +++++++++++++
libeap-ikev2.spec | 4 +++-
2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/libeap-ikev2.spec b/libeap-ikev2.spec
index 029a597..c461237 100644
--- a/libeap-ikev2.spec
+++ b/libeap-ikev2.spec
@@ -2,12 +2,13 @@ Summary: Implementation of the EAP-IKEv2 authentication method
Summary(pl.UTF-8): Implementacja metody uwierzytelnienia EAP-IKEv2
Name: libeap-ikev2
Version: 0.2.1
-Release: 4
+Release: 5
License: GPL v2+
Group: Libraries
Source0: http://downloads.sourceforge.net/eap-ikev2/%{name}-%{version}.tar.gz
# Source0-md5: e8c4900ff9f2825e189be66c61d146f2
Patch0: link.patch
+Patch1: dont_redefine_bool.patch
URL: http://eap-ikev2.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
@@ -55,6 +56,7 @@ Statyczna biblioteka libeap-ikev2.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
diff --git a/dont_redefine_bool.patch b/dont_redefine_bool.patch
new file mode 100644
index 0000000..3c51be2
--- /dev/null
+++ b/dont_redefine_bool.patch
@@ -0,0 +1,13 @@
+diff -dur libeap-ikev2-0.2.1.orig/src/common.h libeap-ikev2-0.2.1/src/common.h
+--- libeap-ikev2-0.2.1.orig/src/common.h 2006-09-16 01:26:08.000000000 +0200
++++ libeap-ikev2-0.2.1/src/common.h 2018-10-09 15:27:48.000000000 +0200
+@@ -61,7 +61,9 @@
+
+ #define EAP_IKEv2_KEY_LEN 256
+
++#ifndef __bool_true_false_are_defined
+ typedef enum { false = 0, true = -1 } bool;
++#endif
+
+ #include <openssl/bn.h>
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libeap-ikev2.git/commitdiff/8899a7bf65c6364765919c6b3c08bb9feb057293
More information about the pld-cvs-commit
mailing list