cmake: Check for getrandom system call
authorFlorian Fainelli <f.fainelli@gmail.com>
Sun, 5 Feb 2017 02:41:34 +0000 (18:41 -0800)
committerJohn Crispin <john@phrozen.org>
Thu, 9 Feb 2017 08:21:02 +0000 (09:21 +0100)
commitfce9382b4b99178fdbd188bec098b9b085327fef
tree2097e58e5fed18f5580d000fe5d5dcf26161e251
parentac2d43e7c84fa3041ee2bf5709fdf69352189317
cmake: Check for getrandom system call

In case we are building against a kernel that is too old and does not
support SYS_getrandom, error out with a message indicating so.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
CMakeLists.txt