From: Miroslav Lichvar Date: Fri, 14 Jul 2017 08:21:31 +0000 (+0200) Subject: configure: fix compiler warning in getrandom() test X-Git-Tag: 3.2-pre1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=043c7d7c9f9109ea510db0d418e056216fb49fa1;p=thirdparty%2Fchrony.git configure: fix compiler warning in getrandom() test --- diff --git a/configure b/configure index b762e0da..45eddf15 100755 --- a/configure +++ b/configure @@ -659,7 +659,7 @@ if test_code 'arc4random_buf()' 'stdlib.h' '' '' 'arc4random_buf(NULL, 0);'; the fi if test_code 'getrandom()' 'stdlib.h sys/random.h' '' '' \ - 'getrandom(NULL, 256, 0);'; then + 'return getrandom(NULL, 256, 0);'; then add_def HAVE_GETRANDOM fi