python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / samba4 / 0001-libreplace-disable-libbsd-support.patch
blob4d0c770af46e40316111da73a8e8a2ef07bb91c1
1 From fc0304ba92ec7ae9a2f75fbc31d97fee39d19665 Mon Sep 17 00:00:00 2001
2 From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3 Date: Wed, 7 Sep 2016 23:03:43 -0300
4 Subject: [PATCH] libreplace: disable libbsd support
6 Disable libbsd support, samba4 uses a global config.h for its own
7 codebase and that of heimdal (when building with builtin).
8 This causes redefinition conflicts for link(2) when both standard
9 unistd.h and bsd/unistd.h get included.
11 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
12 ---
13 lib/replace/wscript | 12 ------------
14 1 file changed, 12 deletions(-)
16 diff --git a/lib/replace/wscript b/lib/replace/wscript
17 index 1dfd902..456be9b 100644
18 --- a/lib/replace/wscript
19 +++ b/lib/replace/wscript
20 @@ -248,18 +248,6 @@ def configure(conf):
22 conf.CHECK_FUNCS('prctl dirname basename')
24 - # libbsd on some platforms provides strlcpy and strlcat
25 - if not conf.CHECK_FUNCS('strlcpy strlcat'):
26 - conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
27 - checklibc=True)
28 - if not conf.CHECK_FUNCS('getpeereid'):
29 - conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h')
30 - if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'):
31 - conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h')
33 - if not conf.CHECK_FUNCS('closefrom'):
34 - conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h')
36 conf.CHECK_CODE('''
37 struct ucred cred;
38 socklen_t cred_len;
39 --
40 2.7.3