2019-03-17 11:42:34 +01:00
|
|
|
diff -u -r ../talloc-2.1.14/lib/replace/wscript ./lib/replace/wscript
|
|
|
|
--- ../talloc-2.1.14/lib/replace/wscript 2018-07-12 05:51:30.000000000 +0000
|
|
|
|
+++ ./lib/replace/wscript 2019-03-17 10:38:26.655881820 +0000
|
2016-08-15 01:18:26 +02:00
|
|
|
@@ -32,7 +32,7 @@
|
|
|
|
conf.DEFINE('HAVE_LIBREPLACE', 1)
|
|
|
|
conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
|
|
|
|
|
|
|
|
- conf.CHECK_HEADERS('linux/types.h crypt.h locale.h acl/libacl.h compat.h')
|
|
|
|
+ conf.CHECK_HEADERS('linux/types.h locale.h acl/libacl.h compat.h')
|
|
|
|
conf.CHECK_HEADERS('acl/libacl.h attr/xattr.h compat.h ctype.h dustat.h')
|
|
|
|
conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h')
|
|
|
|
conf.CHECK_HEADERS('libaio.h locale.h ndir.h pwd.h')
|
2019-03-17 11:42:34 +01:00
|
|
|
@@ -551,9 +551,6 @@
|
2016-08-15 01:18:26 +02:00
|
|
|
conf.CONFIG_SET('HAVE_PTHREAD_MUTEX_CONSISTENT_NP'))):
|
|
|
|
conf.DEFINE('HAVE_ROBUST_MUTEXES', 1)
|
|
|
|
|
|
|
|
- conf.CHECK_FUNCS_IN('crypt', 'crypt', checklibc=True)
|
2017-07-26 15:12:25 +02:00
|
|
|
- conf.CHECK_FUNCS_IN('crypt_r', 'crypt', checklibc=True)
|
2016-08-15 01:18:26 +02:00
|
|
|
-
|
|
|
|
conf.CHECK_VARIABLE('rl_event_hook', define='HAVE_DECL_RL_EVENT_HOOK', always=True,
|
|
|
|
headers='readline.h readline/readline.h readline/history.h')
|
|
|
|
|
2019-03-17 11:42:34 +01:00
|
|
|
@@ -761,7 +758,6 @@
|
|
|
|
break
|
|
|
|
|
|
|
|
extra_libs = ''
|
|
|
|
- if bld.CONFIG_SET('HAVE_LIBBSD'): extra_libs += ' bsd'
|
|
|
|
|
|
|
|
bld.SAMBA_SUBSYSTEM('LIBREPLACE_HOSTCC',
|
|
|
|
REPLACE_HOSTCC_SOURCE,
|
|
|
|
@@ -775,7 +771,6 @@
|
2017-07-26 15:12:25 +02:00
|
|
|
REPLACE_SOURCE = REPLACE_HOSTCC_SOURCE
|
|
|
|
REPLACE_SOURCE += ' cwrap.c'
|
|
|
|
|
|
|
|
- if not bld.CONFIG_SET('HAVE_CRYPT'): REPLACE_SOURCE += ' crypt.c'
|
|
|
|
if not bld.CONFIG_SET('HAVE_DLOPEN'): REPLACE_SOURCE += ' dlfcn.c'
|
|
|
|
if not bld.CONFIG_SET('HAVE_POLL'): REPLACE_SOURCE += ' poll.c'
|
|
|
|
|
2019-03-17 11:42:34 +01:00
|
|
|
@@ -802,7 +797,7 @@
|
2016-08-15 01:18:26 +02:00
|
|
|
# at the moment:
|
|
|
|
# hide_symbols=bld.BUILTIN_LIBRARY('replace'),
|
|
|
|
private_library=True,
|
|
|
|
- deps='crypt dl nsl socket rt attr' + extra_libs)
|
|
|
|
+ deps='dl nsl socket rt attr' + extra_libs)
|
|
|
|
|
2017-07-26 15:12:25 +02:00
|
|
|
replace_test_cflags="-Wno-format-zero-length"
|
|
|
|
if bld.CONFIG_SET('HAVE_WNO_FORMAT_TRUNCATION'):
|