cmake: Fix ioctl configure check.
authorAndreas Schneider <asn@cryptomilk.org>
Fri, 15 Nov 2013 08:31:21 +0000 (09:31 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 15 Nov 2013 08:31:21 +0000 (09:31 +0100)
ConfigureChecks.cmake

index b74407ccbda4963f5bc22b4b49214e512847b967..2aaf7186f8a0a6f1cd0536c9a9bbf62efcbebc4b 100644 (file)
@@ -104,9 +104,9 @@ check_prototype_definition(accept
     HAVE_ACCEPT_PSOCKLEN_T)
 
 check_prototype_definition(ioctl
-    "int accept(int s, int r, ...)"
+    "int ioctl(int s, int r, ...)"
     "-1"
-    "unistd.h"
+    "sys/ioctl.h"
     HAVE_IOCTL_INT)
 
 # IPV6