The Samba-Bugzilla – Attachment 11963 Details for
Bug 11816
samba 4.4.0 fails to compile on illumos/Solaris due to FIONREAD not being declared
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
look (text/plain), 2.15 KB, created by
Volker Lendecke
on 2016-04-04 06:19:24 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2016-04-04 06:19:24 UTC
Size:
2.15 KB
patch
obsolete
>From d67849cff164a25c43b62c36e06769a4f8883fd1 Mon Sep 17 00:00:00 2001 >From: Jorge Schrauwen <sjorge@blackdot.be> >Date: Sun, 3 Apr 2016 11:43:50 +0200 >Subject: [PATCH] configure: Don't check for inotify on illumos > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=11816 >--- > source3/wscript | 11 +++++++---- > source4/ntvfs/sysdep/wscript_configure | 13 +++++++++---- > 2 files changed, 16 insertions(+), 8 deletions(-) > >diff --git a/source3/wscript b/source3/wscript >index 9b73bfc..3118e28 100644 >--- a/source3/wscript >+++ b/source3/wscript >@@ -135,10 +135,13 @@ long ret = splice(0,0,1,0,400,SPLICE_F_MOVE); > headers='fcntl.h'): > conf.CHECK_DECLS('splice', reverse=True, headers='fcntl.h') > >- # Check for inotify support >- conf.CHECK_HEADERS('sys/inotify.h') >- if "HAVE_SYS_INOTIFY_H" in conf.env: >- conf.DEFINE('HAVE_INOTIFY', 1) >+ # 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') >+ if "HAVE_SYS_INOTIFY_H" in conf.env: >+ conf.DEFINE('HAVE_INOTIFY', 1) > > # Check for kernel change notify support > conf.CHECK_CODE(''' >diff --git a/source4/ntvfs/sysdep/wscript_configure b/source4/ntvfs/sysdep/wscript_configure >index aa63000..274fc08 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) >-- >1.9.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11816
:
11950
|
11951
|
11954
|
11955
|
11956
| 11963 |
12027
|
12028
|
12029