diff mbox

[FFmpeg-devel] configure: Check arc4random() header definition

Message ID 201608130225.14630.cehoyos@ag.or.at
State Accepted
Commit 79dc94a63b30369e39792e81cb032f2cf40539b4
Headers show

Commit Message

Carl Eugen Hoyos Aug. 13, 2016, 12:25 a.m. UTC
Hi!

Attached patch fixes Cygwin default compilation.

Please comment, Carl Eugen
From 8062e84621e2e676b65874bd6f59fb6e4bdd6c6d Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos@ag.or.at>
Date: Sat, 13 Aug 2016 02:22:16 +0200
Subject: [PATCH] configure: Check for arc4random() header definition.

Fixes Cygwin compilation.
---
 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul B Mahol Aug. 13, 2016, 8:02 a.m. UTC | #1
On 8/13/16, Carl Eugen Hoyos <cehoyos@ag.or.at> wrote:
> Hi!
>
> Attached patch fixes Cygwin default compilation.
>
> Please comment, Carl Eugen
>

LGTM
Carl Eugen Hoyos Aug. 13, 2016, 10:15 a.m. UTC | #2
2016-08-13 10:02 GMT+02:00 Paul B Mahol <onemda@gmail.com>:
> On 8/13/16, Carl Eugen Hoyos <cehoyos@ag.or.at> wrote:
>> Attached patch fixes Cygwin default compilation.

> LGTM

Patch applied.

Thank you, Carl Eugen
diff mbox

Patch

diff --git a/configure b/configure
index 8e30c68..bff8159 100755
--- a/configure
+++ b/configure
@@ -5455,7 +5455,7 @@  check_func  ${malloc_prefix}memalign            && enable memalign
 check_func  ${malloc_prefix}posix_memalign      && enable posix_memalign
 
 check_func  access
-check_func  arc4random
+check_func_headers stdlib.h arc4random
 check_func_headers time.h clock_gettime || { check_func_headers time.h clock_gettime -lrt && add_extralibs -lrt && LIBRT="-lrt"; }
 check_func  fcntl
 check_func  fork