aboutsummaryrefslogtreecommitdiffstats
path: root/main/kodi/fortify-source-fix.patch
blob: 5717746e09e1590fd19de3141c904081329d8ae5 (plain)
1
2
3
4
5
6
7
8
9
10
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)
 {