test: fix -Wunused-function warning (#5090)
The function is only used on BSDs. Introduced in commit 919b92d9 ("unix:
support long path names in pipe.c") from a few days ago.
This commit is contained in:
parent
1f56978a28
commit
14f6c4cc1f
@ -371,11 +371,12 @@ TEST_IMPL(pipe_getsockname_blocking) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SOCK_MAXADDRLEN
|
||||||
static void long_path_connect_cb(uv_connect_t* req, int status) {
|
static void long_path_connect_cb(uv_connect_t* req, int status) {
|
||||||
ASSERT_OK(status);
|
ASSERT_OK(status);
|
||||||
uv_close((uv_handle_t*) req->handle, NULL);
|
uv_close((uv_handle_t*) req->handle, NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
TEST_IMPL(pipe_getsockname_long_path) {
|
TEST_IMPL(pipe_getsockname_long_path) {
|
||||||
#ifndef SOCK_MAXADDRLEN
|
#ifndef SOCK_MAXADDRLEN
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user