contrib: gnutls: disable getentropy in gnutls configure
[vlc.git] / contrib / src / gnutls / gnutls-disable-getentropy-osx.patch
1 --- gnutls/configure.ac 2016-07-05 18:34:43.000000000 +0200
2 +++ gnutls.new/configure.ac     2017-08-09 21:57:44.000000000 +0200
3 @@ -175,6 +175,9 @@
4                    enable_getrandom=getrandom],
5                   [AC_MSG_RESULT(no)])
6  
7 +if test "$have_macosx" = "yes"; then
8 +AC_MSG_CHECKING([for getentropy disabled for OSX])
9 +else
10  AC_MSG_CHECKING([for getentropy])
11  AC_LINK_IFELSE([AC_LANG_PROGRAM([
12            #include <unistd.h>],[
13 @@ -184,6 +187,7 @@
14                    AC_DEFINE([HAVE_GETENTROPY], 1, [Enable the OpenBSD getentropy function])
15                    enable_getrandom=getentropy],
16                   [AC_MSG_RESULT(no)])
17 +fi
18  
19  dnl Try the hooks.m4
20  LIBGNUTLS_HOOKS