Improve the configure tests for aio_suspend to get rid of warnings. Timur provided...
[samba.git] / source3 / configure.in
index 031a33da20c33138c367d53982382b521c63b2e9..1b24ad6a04bcc6e8f7562dc52f0d6ce9b2a8f317 100644 (file)
@@ -5387,7 +5387,7 @@ int main() { struct aiocb a; return aio_cancel(1, &a); }])],
 
                        AC_MSG_CHECKING(for aio_suspend)
                        AC_LINK_IFELSE([AC_LANG_SOURCE([#include <aio.h>
-int main() { struct aiocb a; struct timespec t; return aio_suspend(&a, 1, &t); }])],
+int main() { const struct aiocb * const [a[1]]; struct timespec t; return aio_suspend(a, 1, &t); }])],
 [AC_DEFINE(HAVE_AIO_SUSPEND, 1, [Have aio_suspend]) AC_MSG_RESULT(yes)],
 [AC_MSG_RESULT(no)])
                else