forked from Lainports/opnsense-ports
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
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>
|