configure: Fix bug 9546, aio_suspend detection on FreeBSD
authorVolker Lendecke <vl@samba.org>
Mon, 7 Jan 2013 10:06:15 +0000 (11:06 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 17 Jan 2013 08:09:14 +0000 (09:09 +0100)
NULL is not defined without some includes
(cherry picked from commit 653ebe132287ba66ef54675a3b58988994f0a486)

source3/configure.in

index a29818362c7176dd80521aae8479cafce7bf9778..0f805ee503e895e028be79bd471e2f52864e91ae 100644 (file)
@@ -5877,7 +5877,7 @@ int main() { struct aiocb a; return aio_cancel(1, &a); }],
 
                        AC_MSG_CHECKING(for aio_suspend)
                        AC_LINK_IFELSE([#include <aio.h>
-int main() { struct aiocb a; return aio_suspend(&a, 1, NULL); }],
+int main() { struct aiocb a; 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)])
                fi