From d52d29f1b3c93c03182de26aa92f1d3e00968ae7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 29 Jun 2000 08:23:56 +0000 Subject: simpler configure test (This used to be commit 7752c14c313bf9b565828181647fb71457167d92) --- source3/configure.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/configure.in b/source3/configure.in index b8a7226e92..db7ac60c9b 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -729,8 +729,7 @@ AC_TRY_RUN([ #define F_NOTIFY 1026 #endif main() { - signal(SIGIO, SIG_IGN); - exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0xF) != 0); + exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0); } ], samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes,samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no,samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross)]) -- cgit