Unverified Commit 5fe78307 authored by Simon Giesecke's avatar Simon Giesecke Committed by GitHub

Merge pull request #3085 from bluca/getrandom_test

Problem: getrandom test does not check if it's working
parents 0f896fcd 4ff814f2
......@@ -883,7 +883,8 @@ AC_DEFUN([LIBZMQ_CHECK_GETRANDOM], [{
int main (int argc, char *argv [])
{
char buf[4];
getrandom(buf, 4, 0);
int rc = getrandom(buf, 4, 0);
return rc == -1 ? 1 : 0;
}
],
[libzmq_cv_getrandom="yes"],
......
......@@ -287,7 +287,8 @@ macro(zmq_check_getrandom)
int main (int argc, char *argv [])
{
char buf[4];
getrandom(buf, 4, 0);
int rc = getrandom(buf, 4, 0);
return rc == -1 ? 1 : 0;
}
"
ZMQ_HAVE_GETRANDOM)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment