2017-01-24 11:39:39 +01:00
|
|
|
From fc0304ba92ec7ae9a2f75fbc31d97fee39d19665 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
|
|
Date: Wed, 7 Sep 2016 23:03:43 -0300
|
|
|
|
Subject: [PATCH] libreplace: disable libbsd support
|
|
|
|
|
2014-05-19 14:27:57 +02:00
|
|
|
Disable libbsd support, samba4 uses a global config.h for its own
|
|
|
|
codebase and that of heimdal (when building with builtin).
|
2017-01-24 11:39:39 +01:00
|
|
|
This causes redefinition conflicts for link(2) when both standard
|
|
|
|
unistd.h and bsd/unistd.h get included.
|
2014-05-19 14:27:57 +02:00
|
|
|
|
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
2018-08-24 18:27:44 +02:00
|
|
|
[Bernd: rebased for versions 4.7.3, 4.8.0 & 4.8.5]
|
2017-11-27 07:24:06 +01:00
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
2017-01-24 11:39:39 +01:00
|
|
|
---
|
2018-08-24 18:27:44 +02:00
|
|
|
lib/replace/wscript | 15 ---------------
|
|
|
|
1 file changed, 15 deletions(-)
|
2014-05-19 14:27:57 +02:00
|
|
|
|
2017-01-24 11:39:39 +01:00
|
|
|
diff --git a/lib/replace/wscript b/lib/replace/wscript
|
2018-08-24 18:27:44 +02:00
|
|
|
index 6c7de5953f0..ac230d719f7 100644
|
2017-01-24 11:39:39 +01:00
|
|
|
--- a/lib/replace/wscript
|
|
|
|
+++ b/lib/replace/wscript
|
2018-08-24 18:27:44 +02:00
|
|
|
@@ -304,21 +304,6 @@ def configure(conf):
|
2017-01-24 11:39:39 +01:00
|
|
|
|
2017-11-27 07:24:06 +01:00
|
|
|
strlcpy_in_bsd = False
|
2014-05-19 14:27:57 +02:00
|
|
|
|
|
|
|
- # libbsd on some platforms provides strlcpy and strlcat
|
|
|
|
- if not conf.CHECK_FUNCS('strlcpy strlcat'):
|
2017-11-27 07:24:06 +01:00
|
|
|
- if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
|
|
|
|
- checklibc=True):
|
|
|
|
- strlcpy_in_bsd = True
|
2014-05-19 14:27:57 +02:00
|
|
|
- if not conf.CHECK_FUNCS('getpeereid'):
|
|
|
|
- conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h')
|
2015-03-05 21:44:09 +01:00
|
|
|
- if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'):
|
|
|
|
- conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h')
|
2018-03-24 12:35:52 +01:00
|
|
|
- if not conf.CHECK_FUNCS('setproctitle_init'):
|
|
|
|
- conf.CHECK_FUNCS_IN('setproctitle_init', 'bsd', headers='sys/types.h bsd/unistd.h')
|
2017-01-24 11:39:39 +01:00
|
|
|
-
|
|
|
|
- if not conf.CHECK_FUNCS('closefrom'):
|
|
|
|
- conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h')
|
2014-05-19 14:27:57 +02:00
|
|
|
-
|
|
|
|
conf.CHECK_CODE('''
|
|
|
|
struct ucred cred;
|
|
|
|
socklen_t cred_len;
|
2017-01-24 11:39:39 +01:00
|
|
|
--
|
2018-08-24 18:27:44 +02:00
|
|
|
2.18.0
|
2017-01-24 11:39:39 +01:00
|
|
|
|