mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-23 14:26:18 +00:00
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
diff --git chromium-69.0.3497.100/third_party/swiftshader/src/Common/Socket.hpp
|
|
index b6b9abd..aa61d9f 100644
|
|
--- chromium-69.0.3497.100/third_party/swiftshader/src/Common/Socket.hpp
|
|
+++ chromium-69.0.3497.100/third_party/swiftshader/src/Common/Socket.hpp
|
|
@@ -18,6 +18,7 @@
|
|
#if defined(_WIN32)
|
|
#include <winsock2.h>
|
|
#else
|
|
+ #include <sys/select.h>
|
|
#include <sys/socket.h>
|
|
typedef int SOCKET;
|
|
#endif
|
|
diff --git chromium-75.0.3770.100/net/socket/udp_socket_posix.cc
|
|
index 08bf79c..3ee5353 100644
|
|
--- chromium-75.0.3770.100/net/socket/udp_socket_posix.cc.orig
|
|
+++ chromium-75.0.3770.100/net/socket/udp_socket_posix.cc
|
|
@@ -1194,7 +1194,7 @@ SendResult UDPSocketPosixSender::InternalSendmmsgBuffers(
|
|
msg_iov->push_back({const_cast<char*>(buffer->data()), buffer->length()});
|
|
msgvec->reserve(buffers.size());
|
|
for (size_t j = 0; j < buffers.size(); j++)
|
|
- msgvec->push_back({{nullptr, 0, &msg_iov[j], 1, nullptr, 0, 0}, 0});
|
|
+ msgvec->push_back({{nullptr, 0, &msg_iov[j], 1, 0, nullptr, 0, 0, 0}, 0});
|
|
int result = HANDLE_EINTR(Sendmmsg(fd, &msgvec[0], buffers.size(), 0));
|
|
SendResult send_result(0, 0, std::move(buffers));
|
|
if (result < 0) {
|