1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

simpler configure test

(This used to be commit 7752c14c31)
This commit is contained in:
Andrew Tridgell
2000-06-29 08:23:56 +00:00
parent 7d9b43c8e0
commit d52d29f1b3

View File

@ -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)])