Skip to content

Commit 412aa96

Browse files
authored
Fix build (#778)
1 parent d21070e commit 412aa96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

util/parallel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "util/parallel.h"
55
#include "util/compiler.h"
66
#include <cassert>
7+
#include <cstring>
78
#include <fcntl.h>
89
#include <fstream>
910
#include <regex>
@@ -181,7 +182,7 @@ void parallel::finishChild(bool is_timeout) {
181182
ensureChild();
182183
if (is_timeout) {
183184
const char *msg = "ERROR: Timeout asynchronous\n\n";
184-
safe_write(fd_to_parent, msg, strlen(msg));
185+
safe_write(fd_to_parent, msg, std::strlen(msg));
185186
} else {
186187
childProcess &me = children.back();
187188
auto data = move(me.output).str();

0 commit comments

Comments
 (0)