commit 836f1f3567d056e5ccde3ba52b31370b66ff26b9
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Sat Jun 15 09:56:33 2019 +0530
Use linux/sockios.h instead of sys/socket.h (linux 5.2)
Add-missing-header-to-fix-webrtc-build.patch | 36 +++++++++++-----------------
1 file changed, 14 insertions(+), 22 deletions(-)
---
diff --git a/Add-missing-header-to-fix-webrtc-build.patch
b/Add-missing-header-to-fix-webrtc-build.patch
index e4af3aa..b500700 100644
--- a/Add-missing-header-to-fix-webrtc-build.patch
+++ b/Add-missing-header-to-fix-webrtc-build.patch
@@ -1,24 +1,16 @@
-From 0e5ab80fa6c7077c4290755d32ca8328ba07677b Mon Sep 17 00:00:00 2001
-From: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
-Date: Thu, 13 Jun 2019 12:53:24 +0530
-Subject: [PATCH] Add missing header to fix webrtc build
-
----
- third_party/webrtc/rtc_base/physical_socket_server.cc | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/third_party/webrtc/rtc_base/physical_socket_server.cc
b/third_party/webrtc/rtc_base/physical_socket_server.cc
-index 4845a7338..ca26a85c8 100644
---- a/third_party/webrtc/rtc_base/physical_socket_server.cc
-+++ b/third_party/webrtc/rtc_base/physical_socket_server.cc
-@@ -26,6 +26,7 @@
+diff -up
chromium-75.0.3770.80/third_party/webrtc/rtc_base/physical_socket_server.h.SIOCGSTAMP
chromium-75.0.3770.80/third_party/webrtc/rtc_base/physical_socket_server.h
+---
chromium-75.0.3770.80/third_party/webrtc/rtc_base/physical_socket_server.h.SIOCGSTAMP 2019-06-06
10:04:57.050403639 -0400
++++ chromium-75.0.3770.80/third_party/webrtc/rtc_base/physical_socket_server.h 2019-06-06
10:06:03.975121688 -0400
+@@ -16,6 +16,11 @@
+ #define WEBRTC_USE_EPOLL 1
#endif
- #include <signal.h>
- #include <sys/ioctl.h>
-+#include <sys/socket.h>
- #include <sys/select.h>
- #include <sys/time.h>
- #include <unistd.h>
---
-2.21.0
+
++// for SIOCGSTAMP in Linux 5.2
++#if defined(WEBRTC_LINUX)
++#include <linux/sockios.h>
++#endif
++
+ #include <memory>
+ #include <set>
+ #include <vector>