blob: f8476932ceeb8c8cf29f30c6ceffba0de474fa1f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
Adjust includes in various places.
core/os_interface/linux/drm_neo.cpp:21:10: fatal error: 'linux/limits.h' file not found
#include <linux/limits.h>
^~~~~~~~~~~~~~~~
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 {
^
--- shared/source/os_interface/linux/drm_neo.cpp.orig 2020-04-17 18:43:38 UTC
+++ shared/source/os_interface/linux/drm_neo.cpp
@@ -19,9 +19,9 @@
#include "shared/source/os_interface/os_interface.h"
#include "shared/source/utilities/directory.h"
+#include <climits>
#include <cstdio>
#include <cstring>
-#include <linux/limits.h>
namespace NEO {
--- opencl/source/tbx/tbx_sockets_imp.cpp.orig 2020-02-28 16:16:42 UTC
+++ opencl/source/tbx/tbx_sockets_imp.cpp
@@ -18,6 +18,7 @@ typedef int socklen_t;
#else
#include <arpa/inet.h>
#include <netdb.h>
+#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
|