]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
waf: re-add missing readlink test
authorBjörn Jacke <bj@sernet.de>
Wed, 26 Dec 2018 00:03:29 +0000 (01:03 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 18 Feb 2022 23:12:51 +0000 (23:12 +0000)
this was another portability regression that came with the moving to waf

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13631

Signed-off-by: Bjoern Jacke <bj@sernet.de>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Feb 18 23:12:51 UTC 2022 on sn-devel-184

source3/wscript

index dd91df2dc516719f53e623740344a78edbaa6ff1..412f315c662dbcd556caa20f56206ab311f2cdfa 100644 (file)
@@ -1374,6 +1374,12 @@ main() {
                     addmain=False,
                     execute=True)
 
+    conf.CHECK_CODE('''#include "../tests/readlink.c"''',
+                    'HAVE_BROKEN_READLINK',
+                    msg='Checking for readlink breakage',
+                    addmain=False,
+                    execute=True)
+
     conf.SET_TARGET_TYPE('sendfile', 'EMPTY')
     conf.CHECK_LIB('sendfile')
     if not Options.options.with_sendfile_support == False: