roken: introduce rk_cloexec_socket
Accepts type rk_socket_t and is a no-op on Windows Change-Id: I82755872e86ef36445e60054dd752279aaceb6d1
This commit is contained in:
@@ -64,3 +64,12 @@ rk_cloexec_dir(DIR * d)
|
||||
rk_cloexec(dirfd(d));
|
||||
#endif
|
||||
}
|
||||
|
||||
void ROKEN_LIB_FUNCTION
|
||||
rk_cloexec_socket(rk_socket_t s)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
rk_cloexec((int)s);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user