]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
configure: fix compiler warning in getrandom() test
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 14 Jul 2017 08:21:31 +0000 (10:21 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 14 Jul 2017 08:21:31 +0000 (10:21 +0200)
configure

index b762e0da175cadc53b2f887e8599271ead8a1707..45eddf15ded2c9d5868e791237e58a6c828f9eaf 100755 (executable)
--- 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