From 781b7b187a4c17c15f8b050d8d08bc4329a5ac5a Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Mon, 14 Nov 2022 19:57:08 +0300 Subject: [PATCH] Add a type cast necessary to compile on FreeBSD. --- src/modules/module-raop-sink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/module-raop-sink.c b/src/modules/module-raop-sink.c index 357e12ba5..4578411d1 100644 --- a/src/modules/module-raop-sink.c +++ b/src/modules/module-raop-sink.c @@ -579,10 +579,10 @@ static int create_udp_socket(struct impl *impl, uint16_t *port) if (ip_version == 4) { sa4.sin_port = htons(*port); - ret = bind(fd, &sa4, sizeof(sa4)); + ret = bind(fd, (struct sockaddr*)&sa4, sizeof(sa4)); } else { sa6.sin6_port = htons(*port); - ret = bind(fd, &sa6, sizeof(sa6)); + ret = bind(fd, (struct sockaddr*)&sa6, sizeof(sa6)); } if (ret == 0) break;