aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/compat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index d69e3b093..3768933ed 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -1092,6 +1092,8 @@ tor_open_socket_with_extensions(int domain, int type, int protocol,
return TOR_INVALID_SOCKET;
}
}
+#else
+ (void)cloexec;
#endif
if (nonblock) {
@@ -1162,6 +1164,8 @@ tor_accept_socket_with_extensions(tor_socket_t sockfd, struct sockaddr *addr,
return TOR_INVALID_SOCKET;
}
}
+#else
+ (void)cloexec;
#endif
if (nonblock) {