[vlc-commits] macOS build.sh: do not detect memset_s as available

Steve Lhomme git at videolan.org
Fri Jun 26 12:35:05 CEST 2020


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun 12 07:46:58 2020 +0200| [5a7e1f74763afc7e556dda6e30ec84bace8c56f0] | committer: Steve Lhomme

macOS build.sh: do not detect memset_s as available

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

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5a7e1f74763afc7e556dda6e30ec84bace8c56f0
---

 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
 



More information about the vlc-commits mailing list