summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSönke Holz <sholz8530@gmail.com>2021-08-06 21:08:31 +0200
committerSönke Holz <sholz8530@gmail.com>2021-08-06 21:08:31 +0200
commit652e5e3df0afabffe1ff0d61f475d847a1d7f6d6 (patch)
tree85b72a561614189aa7c192f3739d043e187acf1c
parentMerge pull request #6822 from yzct12345/clion-assert (diff)
downloadyuzu-652e5e3df0afabffe1ff0d61f475d847a1d7f6d6.tar
yuzu-652e5e3df0afabffe1ff0d61f475d847a1d7f6d6.tar.gz
yuzu-652e5e3df0afabffe1ff0d61f475d847a1d7f6d6.tar.bz2
yuzu-652e5e3df0afabffe1ff0d61f475d847a1d7f6d6.tar.lz
yuzu-652e5e3df0afabffe1ff0d61f475d847a1d7f6d6.tar.xz
yuzu-652e5e3df0afabffe1ff0d61f475d847a1d7f6d6.tar.zst
yuzu-652e5e3df0afabffe1ff0d61f475d847a1d7f6d6.zip
-rw-r--r--src/core/network/network.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/network/network.cpp b/src/core/network/network.cpp
index 375bc79ec..5dc9cdc14 100644
--- a/src/core/network/network.cpp
+++ b/src/core/network/network.cpp
@@ -182,7 +182,7 @@ linger MakeLinger(bool enable, u32 linger_value) {
}
bool EnableNonBlock(int fd, bool enable) {
- int flags = fcntl(fd, F_GETFD);
+ int flags = fcntl(fd, F_GETFL);
if (flags == -1) {
return false;
}
@@ -191,7 +191,7 @@ bool EnableNonBlock(int fd, bool enable) {
} else {
flags &= ~O_NONBLOCK;
}
- return fcntl(fd, F_SETFD, flags) == 0;
+ return fcntl(fd, F_SETFL, flags) == 0;
}
Errno TranslateNativeError(int e) {