fs/ubifs: work around fakeroot / sed -i issue on systems with SELinux enabled
[buildroot-gz.git] / package / samba4 / 0001-disable-libbsd.patch
blob67f79d00593dd03d7b57c3bc86f2ec557faab246
1 Disable libbsd support, samba4 uses a global config.h for its own
2 codebase and that of heimdal (when building with builtin).
3 This causes redefinition conflicts for link(2) when both standard unistd.h
4 and bsd/unistd.h get included.
6 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
8 diff -Nura samba-4.2.0rc1.orig/lib/replace/wscript samba-4.2.0rc1/lib/replace/wscript
9 --- samba-4.2.0rc1.orig/lib/replace/wscript 2014-10-01 06:17:32.000000000 -0300
10 +++ samba-4.2.0rc1/lib/replace/wscript 2014-10-01 07:21:13.559498987 -0300
11 @@ -282,15 +282,6 @@
12 conf.CHECK_FUNCS('strtouq strtoll __strtoll strtoq memalign posix_memalign')
13 conf.CHECK_FUNCS('prctl')
15 - # libbsd on some platforms provides strlcpy and strlcat
16 - if not conf.CHECK_FUNCS('strlcpy strlcat'):
17 - conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
18 - checklibc=True)
19 - if not conf.CHECK_FUNCS('getpeereid'):
20 - conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h')
21 - if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'):
22 - conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h')
24 conf.CHECK_CODE('''
25 struct ucred cred;
26 socklen_t cred_len;