diff --git a/srcpkgs/kodi/patches/fortify-source-fix.patch b/srcpkgs/kodi/patches/fortify-source-fix.patch index 5717746e09e..5a314718a70 100644 --- a/srcpkgs/kodi/patches/fortify-source-fix.patch +++ b/srcpkgs/kodi/patches/fortify-source-fix.patch @@ -1,9 +1,11 @@ ---- a/xbmc/cores/DllLoader/exports/wrapper.c.orig -+++ b/xbmc/cores/DllLoader/exports/wrapper.c -@@ -462,7 +462,7 @@ +Index: xbmc-19.0-Matrix/xbmc/cores/DllLoader/exports/wrapper.c +=================================================================== +--- xbmc-19.0-Matrix.orig/xbmc/cores/DllLoader/exports/wrapper.c ++++ xbmc-19.0-Matrix/xbmc/cores/DllLoader/exports/wrapper.c +@@ -449,7 +449,7 @@ struct mntent *__wrap_getmntent(FILE *fp // 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. + // actually 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