summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/replace/wscript4
-rw-r--r--lib/tdb/wscript2
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 8e3d9912e4..57b6e22e3f 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -111,7 +111,7 @@ def configure(conf):
conf.CHECK_FUNCS('ftruncate chsize rename waitpid wait4 strlcpy strlcat')
conf.CHECK_FUNCS('initgroups pread pwrite strndup strcasestr')
conf.CHECK_FUNCS('strtok_r mkdtemp dup2 dprintf vdprintf isatty chown lchown')
- conf.CHECK_FUNCS('link readlink symlink realpath fdatasync snprintf vsnprintf')
+ conf.CHECK_FUNCS('link readlink symlink realpath snprintf vsnprintf')
conf.CHECK_FUNCS('asprintf vasprintf setenv unsetenv strnlen strtoull __strtoull')
conf.CHECK_FUNCS('strtouq strtoll __strtoll strtoq')
conf.CHECK_FUNCS('if_nametoindex strerror_r')
@@ -125,6 +125,8 @@ def configure(conf):
checklibc=True, headers='dlfcn.h dl.h')
conf.CHECK_FUNCS_IN('poptGetContext', 'popt')
+ conf.CHECK_FUNCS_IN('fdatasync', 'rt', checklibc=True)
+
# these headers need to be tested as a group on freebsd
conf.CHECK_HEADERS(headers='sys/socket.h net/if.h', together=True)
conf.CHECK_HEADERS(headers='netinet/in.h arpa/nameser.h resolv.h', together=True)
diff --git a/lib/tdb/wscript b/lib/tdb/wscript
index 7a67c20dae..b8927973a0 100644
--- a/lib/tdb/wscript
+++ b/lib/tdb/wscript
@@ -27,7 +27,7 @@ def build(bld):
bld.SAMBA_LIBRARY('tdb',
COMMON_SRC,
- deps='replace',
+ deps='replace rt',
includes='include',
vnum=VERSION)