test: fix compilation warning on non-linux systems
This commit is contained in:
parent
644337a337
commit
d3791bd4c3
@ -36,7 +36,6 @@
|
||||
|
||||
|
||||
static int close_cb_called = 0;
|
||||
static char abstract_pipe[] = "\0test-pipe";
|
||||
|
||||
|
||||
static void close_cb(uv_handle_t* handle) {
|
||||
@ -82,6 +81,7 @@ TEST_IMPL(pipe_getsockname_abstract) {
|
||||
int sock;
|
||||
struct sockaddr_un sun;
|
||||
socklen_t sun_len;
|
||||
char abstract_pipe[] = "\0test-pipe";
|
||||
|
||||
sock = socket(AF_LOCAL, SOCK_STREAM, 0);
|
||||
ASSERT(sock != -1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user