diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2022-08-09 20:59:10 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2022-08-09 22:15:19 +0200 |
commit | 2f62ee0698792c06ee698475049c8d8f03e0e73c (patch) | |
tree | 4d74f7f29d9c624f9e282da03ea78ae29e7b68a4 /Compat.h | |
parent | 8e19b2a2c5655c132a3b41f9a911471dd32914d4 (diff) |
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
Diffstat (limited to 'Compat.h')
-rw-r--r-- | Compat.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 */ |