diff options
author | Jorge Schrauwen <sjorge@blackdot.be> | 2016-04-03 11:43:50 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-04-06 00:15:17 +0200 |
commit | 94f31295b12b20a68d596929ea428eb36f8c0d82 (patch) | |
tree | 3fb4da27342e397335872fda086e83e541639419 /source4/ntvfs | |
parent | ff6b49beeb5df30f4e243a97d2e6218ec497e9ad (diff) | |
download | samba-94f31295b12b20a68d596929ea428eb36f8c0d82.tar.gz |
configure: Don't check for inotify on illumos
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11816
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/sysdep/wscript_configure | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/source4/ntvfs/sysdep/wscript_configure b/source4/ntvfs/sysdep/wscript_configure index aa63000499e..274fc08b581 100644 --- a/source4/ntvfs/sysdep/wscript_configure +++ b/source4/ntvfs/sysdep/wscript_configure @@ -1,9 +1,14 @@ #!/usr/bin/env python -conf.CHECK_HEADERS('sys/inotify.h', add_headers=False) +import sys + +# Check for inotify support (Skip if we are SunOS) +#NOTE: illumos provides sys/inotify.h but is not an exact match for linux +host_os = sys.platform +if host_os.rfind('sunos') == -1: + conf.CHECK_HEADERS('sys/inotify.h', add_headers=False) + if (conf.CONFIG_SET('HAVE_SYS_INOTIFY_H')): + conf.DEFINE('HAVE_LINUX_INOTIFY', 1) conf.CHECK_DECLS('F_SETLEASE', headers='linux/fcntl.h', reverse=True) conf.CHECK_DECLS('SA_SIGINFO', headers='signal.h', reverse=True) - -if (conf.CONFIG_SET('HAVE_SYS_INOTIFY_H')): - conf.DEFINE('HAVE_LINUX_INOTIFY', 1) |