From ff6b6f3f72810cd205ffb2d638d13a7afc207d15 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 26 Aug 2015 20:20:38 +0000 Subject: [PATCH] tests: fix build on systems that lack AT_FDCWD definition * tests/readlinkat.c: Stop including . (main): Replace AT_FDCWD with -100. --- tests/readlinkat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/readlinkat.c b/tests/readlinkat.c index a075d703..d22c49e4 100644 --- a/tests/readlinkat.c +++ b/tests/readlinkat.c @@ -1,5 +1,4 @@ #include -#include #include int @@ -8,7 +7,7 @@ main(void) #ifdef __NR_readlinkat char buf[31]; - if (syscall(__NR_readlinkat, AT_FDCWD, "readlinkat.link", buf, sizeof(buf)) != 12) + if (syscall(__NR_readlinkat, -100, "readlinkat.link", buf, sizeof(buf)) != 12) return 77; return 0; -- 2.40.0