Commit 4cc7f892 authored by Dan Melnic's avatar Dan Melnic Committed by Facebook GitHub Bot

Fix QUIC OSS build

Summary:
Fix QUIC OSS build

(Note: this ignores all push blocking failures!)

Reviewed By: danobi

Differential Revision: D25645282

fbshipit-source-id: fcb71d4e930d7ac3802f31d71599338fb346eb80
parent e01b9f04
......@@ -1172,7 +1172,7 @@ AsyncUDPSocket::TXTime AsyncUDPSocket::getTXTime() {
if (FOLLY_UNLIKELY(!txTime_.has_value())) {
TXTime txTime;
#ifdef FOLLY_HAVE_MSG_ERRQUEUE
struct sock_txtime val = {};
struct net_sock_txtime val = {};
socklen_t optlen = sizeof(val);
if (!netops::getsockopt(fd_, SOL_SOCKET, SO_TXTIME, &val, &optlen)) {
txTime.clockid = val.clockid;
......@@ -1187,7 +1187,7 @@ AsyncUDPSocket::TXTime AsyncUDPSocket::getTXTime() {
bool AsyncUDPSocket::setTXTime(TXTime txTime) {
#ifdef FOLLY_HAVE_MSG_ERRQUEUE
struct sock_txtime val;
struct net_sock_txtime val;
val.clockid = txTime.clockid;
val.flags = txTime.deadline ? SOF_TXTIME_DEADLINE_MODE : 0;
int ret =
......
......@@ -60,7 +60,7 @@
#endif
#ifdef FOLLY_HAVE_MSG_ERRQUEUE
enum txtime_flags {
enum net_txtime_flags {
SOF_TXTIME_DEADLINE_MODE = (1 << 0),
SOF_TXTIME_REPORT_ERRORS = (1 << 1),
......@@ -68,7 +68,7 @@ enum txtime_flags {
SOF_TXTIME_FLAGS_MASK = (SOF_TXTIME_FLAGS_LAST - 1) | SOF_TXTIME_FLAGS_LAST
};
struct sock_txtime {
struct net_sock_txtime {
__kernel_clockid_t clockid; /* reference clockid */
__u32 flags; /* as defined by enum txtime_flags */
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment