aboutsummaryrefslogtreecommitdiffstats
path: root/main/kodi/fortify-source-fix.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-04-17 17:50:19 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-04-17 17:50:59 +0200
commitc2b1d1d1c9563a464540ed7cfac49f42cca3ceb8 (patch)
tree1b7df28a33e61a9cab55963ae9ae8b3dbd01ae4d /main/kodi/fortify-source-fix.patch
parentdc2940a82c619d55cc5af1ee60efd737d2c65383 (diff)
downloadaports-c2b1d1d1c9563a464540ed7cfac49f42cca3ceb8.tar.bz2
aports-c2b1d1d1c9563a464540ed7cfac49f42cca3ceb8.tar.xz
main/kodi: move to main
Diffstat (limited to 'main/kodi/fortify-source-fix.patch')
-rw-r--r--main/kodi/fortify-source-fix.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/kodi/fortify-source-fix.patch b/main/kodi/fortify-source-fix.patch
new file mode 100644
index 0000000000..5717746e09
--- /dev/null
+++ b/main/kodi/fortify-source-fix.patch
@@ -0,0 +1,11 @@
+--- a/xbmc/cores/DllLoader/exports/wrapper.c.orig
++++ b/xbmc/cores/DllLoader/exports/wrapper.c
+@@ -462,7 +462,7 @@
+ // are actually #defines which are inlined when compiled with -O. Those defines
+ // actally call __*chk (for example, __fread_chk). We need to bypass this whole
+ // thing to actually call our wrapped functions.
+-#if _FORTIFY_SOURCE > 1
++#if defined(__GLIBC__) && _FORTIFY_SOURCE > 1
+
+ size_t __wrap___fread_chk(void * ptr, size_t ptrlen, size_t size, size_t n, FILE * stream)
+ {