From 76a959a578c1039235988d886bcf335fff0c85f1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 19 Sep 2011 21:04:19 +0200 Subject: rtsp_client, output/raop: use close_socket() instead of close() --- src/rtsp_client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/rtsp_client.c') diff --git a/src/rtsp_client.c b/src/rtsp_client.c index a808ef207..864b3a7f4 100644 --- a/src/rtsp_client.c +++ b/src/rtsp_client.c @@ -21,8 +21,10 @@ * Based on the RTSP client by Shiro Ninomiya */ +#include "config.h" #include "rtsp_client.h" #include "tcp_socket.h" +#include "fd_util.h" #include "glib_compat.h" #include @@ -164,7 +166,7 @@ open_tcp_socket(char *hostname, unsigned short *port, return -1; } if (bind_host(sd, hostname, 0, port, error_r)) { - close(sd); + close_socket(sd); return -1; } -- cgit v1.2.3