Skip to content

Commit 68dbbd7

Browse files
Fix compilation errors
- add missing includes - fix cast Signed-off-by: Mateusz Hoppe <[email protected]>
1 parent 854a77d commit 68dbbd7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

shared/source/os_interface/linux/pmt_util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <climits>
1515

1616
#include <algorithm>
17+
#include <array>
1718
#include <cstring>
1819
#include <fcntl.h>
1920
#include <map>
@@ -101,7 +102,7 @@ ssize_t PmtUtil::readTelem(std::string_view telemDir, const std::size_t count, c
101102
telemFilename << telemDir << "/telem";
102103
int fd = SysCalls::open(telemFilename.str().c_str(), O_RDONLY);
103104
if (fd > 0) {
104-
bytesRead = SysCalls::pread(fd, data, count, offset);
105+
bytesRead = SysCalls::pread(fd, data, count, static_cast<off_t>(offset));
105106
SysCalls::close(fd);
106107
}
107108
return bytesRead;

shared/source/os_interface/linux/pmt_util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
*/
77

88
#include <map>
9+
#include <poll.h>
910
#include <string>
11+
#include <string_view>
1012

1113
namespace NEO {
1214

0 commit comments

Comments
 (0)