diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index e7e0b6e306b7c9e3731fb2d84b76934e7d065e82..570a78c706c2da0b8d7afe7046bd79748262362f 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -334,6 +334,10 @@ static size_t syscall_arg__scnprintf_fd(char *bf, size_t size, #define SCA_FD syscall_arg__scnprintf_fd +#ifndef AT_FDCWD +#define AT_FDCWD -100 +#endif + static size_t syscall_arg__scnprintf_fd_at(char *bf, size_t size, struct syscall_arg *arg) {