Problem: ZMQ_HAVE_O_CLOEXEC always disabled

Solution: Escape quotes in cmake test.
This commit is contained in:
Robin Stacey 2017-09-01 16:00:31 +09:00
parent f1c72dc8e5
commit 83f54d90ad

View File

@ -41,7 +41,7 @@ macro(zmq_check_o_cloexec)
int main(int argc, char *argv [])
{
int s = open ("/dev/null", O_CLOEXEC | O_RDONLY);
int s = open (\"/dev/null\", O_CLOEXEC | O_RDONLY);
return (s == -1);
}
"