diff --git a/src/helpers/wayland_wrapper/wl-socket.c b/src/helpers/wayland_wrapper/wl-socket.c index 34eb593054..24cbc2f7e4 100644 --- a/src/helpers/wayland_wrapper/wl-socket.c +++ b/src/helpers/wayland_wrapper/wl-socket.c @@ -8,6 +8,7 @@ SPDX-License-Identifier: GPL-2.0-or-later */ +#define _DEFAULT_SOURCE #include #include #include @@ -155,7 +156,7 @@ struct wl_socket *wl_socket_create() s->fd = socket(PF_LOCAL, SOCK_STREAM, 0); int size = SUN_LEN(&s->addr); - int ret = bind(s->fd, &s->addr, size); + int ret = bind(s->fd, (struct sockaddr*)&s->addr, size); if (ret < 0) { goto fail; }