diff --git a/0006-fix-compilation-error-by-adding-stdint.h.patch b/0006-fix-compilation-error-by-adding-stdint.h.patch new file mode 100644 index 0000000..3f33240 --- /dev/null +++ b/0006-fix-compilation-error-by-adding-stdint.h.patch @@ -0,0 +1,33 @@ +From 831a9ea232f128c13c36066a704f6ccafa335244 Mon Sep 17 00:00:00 2001 +From: Nirmoy Das +Date: Tue, 5 Sep 2017 11:17:16 +0200 +Subject: [PATCH] fix compilation error by adding stdint.h +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +error: +utils/utils/memory.h:99:15: error: ‘uintptr_t’ undeclared (first use in this function); did you mean ‘__intptr_t’? + for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++) + ^~~~~~~~~ + __intptr_t +--- + src/libstrongswan/utils/utils/memory.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/libstrongswan/utils/utils/memory.h b/src/libstrongswan/utils/utils/memory.h +index b978e7c..55aaaf5 100644 +--- a/src/libstrongswan/utils/utils/memory.h ++++ b/src/libstrongswan/utils/utils/memory.h +@@ -22,6 +22,8 @@ + #ifndef MEMORY_H_ + #define MEMORY_H_ + ++#include ++ + /** + * Helper function that compares two binary blobs for equality + */ +-- +2.14.1 + diff --git a/strongswan.changes b/strongswan.changes index 8634b62..ee86ec6 100644 --- a/strongswan.changes +++ b/strongswan.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 5 11:33:01 CEST 2017 - ndas@suse.de + +- fix "uintptr_t’ undeclared" compilation error. + [+0006-fix-compilation-error-by-adding-stdint.h.patch] + ------------------------------------------------------------------- Mon Jul 31 18:30:28 CEST 2017 - ndas@suse.de diff --git a/strongswan.spec b/strongswan.spec index cbe3898..42da88c 100644 --- a/strongswan.spec +++ b/strongswan.spec @@ -83,6 +83,7 @@ Patch3: %{name}_fipscheck.patch Patch4: %{name}_fipsfilter.patch %endif Patch5: 0005-ikev1-Don-t-retransmit-Aggressive-Mode-response.patch +Patch6: 0006-fix-compilation-error-by-adding-stdint.h.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: bison BuildRequires: curl-devel @@ -294,6 +295,7 @@ and the load testing plugin for IKEv2 daemon. %patch4 -p1 %endif %patch5 -p1 +%patch6 -p1 sed -e 's|@libexecdir@|%_libexecdir|g' \ < $RPM_SOURCE_DIR/strongswan.init.in \ > strongswan.init