From 2f62ee0698792c06ee698475049c8d8f03e0e73c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 9 Aug 2022 20:59:10 +0200 Subject: Linux: support openat() without readlinkat() linux/LinuxProcessList.c:1094:52: error: format specifies type 'char *' but the argument has type 'openat_arg_t' (aka 'int') [-Werror,-Wformat] xSnprintf(filename, sizeof(filename), "%s/cwd", procFd); ~~ ^~~~~~ %d linux/LinuxProcessList.c:1333:44: error: format specifies type 'char *' but the argument has type 'openat_arg_t' (aka 'int') [-Werror,-Wformat] xSnprintf(path, sizeof(path), "%s/exe", procFd); ~~ ^~~~~~ %d Supersedes: #1025 --- Compat.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Compat.h') diff --git a/Compat.h b/Compat.h index 2b5e2052..1c4794e6 100644 --- a/Compat.h +++ b/Compat.h @@ -56,4 +56,9 @@ ssize_t Compat_readlinkat(int dirfd, char* buf, size_t bufsize); +ssize_t Compat_readlink(openat_arg_t dirfd, + const char* pathname, + char* buf, + size_t bufsize); + #endif /* HEADER_Compat */ -- cgit v1.2.3