Adjust includes in various places. level_zero/tools/source/metrics/linux/os_metric_enumeration_imp_linux.cpp:14:10: fatal error: 'sys/sysmacros.h' file not found #include ^~~~~~~~~~~~~~~~~ In file included from level_zero/tools/source/sysman/linux/os_sysman_imp.h:12: level_zero/tools/source/sysman/linux/fs_access.h:19:10: fatal error: 'sys/sysmacros.h' file not found #include ^~~~~~~~~~~~~~~~~ core/os_interface/linux/drm_neo.cpp:21:10: fatal error: 'linux/limits.h' file not found #include ^~~~~~~~~~~~~~~~ runtime/tbx/tbx_sockets_imp.cpp:74:51: error: use of undeclared identifier 'IPPROTO_TCP' m_socket = ::socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); ^ runtime/tbx/tbx_sockets_imp.cpp:107:9: error: unknown type name 'sockaddr_in'; did you mean 'sockaddr'? sockaddr_in clientService; ^~~~~~~~~~~ sockaddr /usr/include/sys/socket.h:328:8: note: 'sockaddr' declared here struct sockaddr { ^ --- level_zero/tools/source/metrics/linux/os_metric_oa_enumeration_imp_linux.cpp.orig 2021-01-20 18:22:07 UTC +++ level_zero/tools/source/metrics/linux/os_metric_oa_enumeration_imp_linux.cpp @@ -13,7 +13,9 @@ #include "level_zero/tools/source/metrics/metric_oa_source.h" #include +#if defined(__linux__) #include +#endif namespace L0 { --- level_zero/tools/source/sysman/linux/fs_access.h.orig 2020-03-27 09:53:58 UTC +++ level_zero/tools/source/sysman/linux/fs_access.h @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include --- shared/source/os_interface/linux/drm_neo.cpp.orig 2022-03-22 13:13:25 UTC +++ shared/source/os_interface/linux/drm_neo.cpp @@ -34,9 +34,9 @@ #include "shared/source/os_interface/os_interface.h" #include "shared/source/utilities/directory.h" +#include #include #include -#include #include namespace NEO { --- shared/source/tbx/tbx_sockets_imp.cpp.orig 2020-10-23 15:44:19 UTC +++ shared/source/tbx/tbx_sockets_imp.cpp @@ -18,6 +18,7 @@ typedef int socklen_t; #else #include #include +#include #include #include #include