[vlc-devel] [PACTH 3.0 21/21] macOS build.sh: do not detect memset_s as available

Steve Lhomme robux4 at ycbcr.xyz
Mon Jun 22 09:03:01 CEST 2020


It's used by newer gnutls. But gives the following error:

error: 'memset_s' is only available on macOS 10.9 or newer [-Werror,-Wunguarded-availability]
   (void) memset_s (s, len, '\0', len);
          ^~~~~~~~
 /Applications/Xcode9.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/string.h:145:9: note: 'memset_s' has been marked as being introduced in macOS 10.9 here, but the deployment target is macOS 10.7.0
---
 extras/package/macosx/build.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/extras/package/macosx/build.sh b/extras/package/macosx/build.sh
index d2f7b53f7a..4508354a9f 100755
--- a/extras/package/macosx/build.sh
+++ b/extras/package/macosx/build.sh
@@ -183,6 +183,9 @@ export ac_cv_func_openat=no
 export ac_cv_func_fstatat=no
 export ac_cv_func_readlinkat=no
 
+# Added symbols between 10.7 and 10.9
+export ac_cv_func_memset_s=no
+
 # libnetwork does not exist yet on 10.7 (used by libcddb)
 export ac_cv_lib_network_connect=no
 
-- 
2.26.2



More information about the vlc-devel mailing list