diff options
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
-rw-r--r-- | tools/lib/api/fs/tracing_path.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lib/api/fs/tracing_path.c b/tools/lib/api/fs/tracing_path.c index a26bb5ea8283..251b7c342a87 100644 --- a/tools/lib/api/fs/tracing_path.c +++ b/tools/lib/api/fs/tracing_path.c | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <stdio.h> | 5 | #include <stdio.h> |
6 | #include <stdlib.h> | 6 | #include <stdlib.h> |
7 | #include <string.h> | 7 | #include <string.h> |
8 | #include <linux/string.h> | ||
8 | #include <errno.h> | 9 | #include <errno.h> |
9 | #include <unistd.h> | 10 | #include <unistd.h> |
10 | #include "fs.h" | 11 | #include "fs.h" |
@@ -118,7 +119,7 @@ static int strerror_open(int err, char *buf, size_t size, const char *filename) | |||
118 | } | 119 | } |
119 | break; | 120 | break; |
120 | default: | 121 | default: |
121 | snprintf(buf, size, "%s", strerror_r(err, sbuf, sizeof(sbuf))); | 122 | snprintf(buf, size, "%s", str_error_r(err, sbuf, sizeof(sbuf))); |
122 | break; | 123 | break; |
123 | } | 124 | } |
124 | 125 | ||