]>
Commit | Line | Data |
---|---|---|
95129837 JB |
1 | --- samba-4.7.6/lib/replace/wscript.orig 2018-04-01 20:31:57.522637016 +0200 |
2 | +++ samba-4.7.6/lib/replace/wscript 2018-04-01 23:00:11.129202131 +0200 | |
ab3e67ec | 3 | @@ -437,19 +437,11 @@ def configure(conf): |
95129837 JB |
4 | strlcpy_in_bsd = False |
5 | ||
ab3e67ec | 6 | # libbsd on some platforms provides strlcpy and strlcat |
95129837 JB |
7 | - if not conf.CHECK_FUNCS('strlcpy strlcat'): |
8 | - if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h', | |
9 | - checklibc=True): | |
10 | - strlcpy_in_bsd = True | |
11 | - if not conf.CHECK_FUNCS('getpeereid'): | |
12 | - conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h') | |
ab3e67ec AM |
13 | - if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'): |
14 | - conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h') | |
711565cb AM |
15 | - if not conf.CHECK_FUNCS('setproctitle_init'): |
16 | - conf.CHECK_FUNCS_IN('setproctitle_init', 'bsd', headers='sys/types.h bsd/unistd.h') | |
95129837 JB |
17 | - |
18 | - if not conf.CHECK_FUNCS('closefrom'): | |
19 | - conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h') | |
ab3e67ec AM |
20 | + conf.CHECK_FUNCS('strlcpy strlcat') |
21 | + conf.CHECK_FUNCS('getpeereid') | |
22 | + conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h') | |
23 | + conf.CHECK_FUNCS('setproctitle_init') | |
24 | + conf.CHECK_FUNCS('closefrom') | |
25 | ||
95129837 JB |
26 | conf.CHECK_CODE(''' |
27 | struct ucred cred; | |
711565cb | 28 |