diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
| commit | 2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch) | |
| tree | 25f0138e1af8902b92dacc8cce09b267447c17db /devel/electron35/files/patch-net_socket_udp__socket__posix.cc | |
| parent | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff) | |
| parent | 1a30da80670973368b399f2b01fe9c04b91a1273 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'devel/electron35/files/patch-net_socket_udp__socket__posix.cc')
| -rw-r--r-- | devel/electron35/files/patch-net_socket_udp__socket__posix.cc | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/devel/electron35/files/patch-net_socket_udp__socket__posix.cc b/devel/electron35/files/patch-net_socket_udp__socket__posix.cc deleted file mode 100644 index 67602a1cdd08..000000000000 --- a/devel/electron35/files/patch-net_socket_udp__socket__posix.cc +++ /dev/null @@ -1,39 +0,0 @@ ---- net/socket/udp_socket_posix.cc.orig 2025-03-24 20:50:14 UTC -+++ net/socket/udp_socket_posix.cc -@@ -528,12 +528,17 @@ int UDPSocketPosix::SetRecvTos() { - #endif // BUILDFLAG(IS_APPLE) - } - -+#ifdef IP_RECVTOS - int rv = setsockopt(socket_, IPPROTO_IP, IP_RECVTOS, &ecn, sizeof(ecn)); -+#else -+ int rv = -1; -+ errno = EOPNOTSUPP; -+#endif - return rv == 0 ? OK : MapSystemError(errno); - } - - void UDPSocketPosix::SetMsgConfirm(bool confirm) { --#if !BUILDFLAG(IS_APPLE) -+#if !BUILDFLAG(IS_APPLE) && !BUILDFLAG(IS_BSD) - if (confirm) { - sendto_flags_ |= MSG_CONFIRM; - } else { -@@ -554,7 +559,7 @@ int UDPSocketPosix::SetBroadcast(bool broadcast) { - DCHECK_CALLED_ON_VALID_THREAD(thread_checker_); - int value = broadcast ? 1 : 0; - int rv; --#if BUILDFLAG(IS_APPLE) -+#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) - // SO_REUSEPORT on OSX permits multiple processes to each receive - // UDP multicast or broadcast datagrams destined for the bound - // port. -@@ -892,7 +897,7 @@ int UDPSocketPosix::DoBind(const IPEndPoint& address) - #if BUILDFLAG(IS_CHROMEOS_ASH) - if (last_error == EINVAL) - return ERR_ADDRESS_IN_USE; --#elif BUILDFLAG(IS_APPLE) -+#elif BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD) - if (last_error == EADDRNOTAVAIL) - return ERR_ADDRESS_IN_USE; - #endif |
