Skip to content

Commit 6c9bc9e

Browse files
author
Yi Ren
committed
- fix lintrunner/linux-job issues
- attempt to fix extension/data_loader/file_data_loader.cpp:20:10: fatal error: 'executorch/runtime/platform/unistd.h' file not found
1 parent eaeb483 commit 6c9bc9e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

extension/data_loader/file_data_loader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
#include <cstring>
1515
#include <limits>
1616

17+
#include <executorch/runtime/platform/unistd.h>
1718
#include <fcntl.h>
1819
#include <sys/stat.h>
1920
#include <sys/types.h>
20-
#include <executorch/runtime/platform/unistd.h>
2121

2222
#include <executorch/runtime/core/error.h>
2323
#include <executorch/runtime/core/result.h>

runtime/platform/targets.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def define_common_targets():
6868
"log.h",
6969
"profiler.h",
7070
"runtime.h",
71+
"unistd.h",
7172
],
7273
srcs = [
7374
"abort.cpp",

runtime/platform/unistd.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
#pragma once
1414

1515
#if defined(_WIN32) && !defined(_WIN64)
16-
#error "You're trying to build ExecuTorch with a too old version of Windows. We need Windows 64-bit."
16+
#error \
17+
"You're trying to build ExecuTorch with a too old version of Windows. We need Windows 64-bit."
1718
#endif
1819

1920
#if !defined(_WIN64)

0 commit comments

Comments
 (0)