From 5fba554d35319484403c2517e7d9aff4e83e3f37 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Fri, 13 Dec 2019 05:34:59 +0000 Subject: lang/compute-runtime: prefix package like other distributions Compute runtime unlike Beignet maybe used by other CPU vendors for a common runtime used by GPGPU. --- lang/intel-compute-runtime/files/patch-includes | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lang/intel-compute-runtime/files/patch-includes (limited to 'lang/intel-compute-runtime/files/patch-includes') diff --git a/lang/intel-compute-runtime/files/patch-includes b/lang/intel-compute-runtime/files/patch-includes new file mode 100644 index 000000000000..da46c97d99cd --- /dev/null +++ b/lang/intel-compute-runtime/files/patch-includes @@ -0,0 +1,23 @@ +Add missing includes in various places. + +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 { + ^ + +--- runtime/tbx/tbx_sockets_imp.cpp.orig 2019-11-22 15:41:47 UTC ++++ runtime/tbx/tbx_sockets_imp.cpp +@@ -18,6 +18,7 @@ typedef int socklen_t; + #else + #include + #include ++#include + #include + #include + #include -- cgit v1.2.3