diff options
author | Max Kellermann <max@duempel.org> | 2011-09-20 08:47:06 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-20 08:47:06 +0200 |
commit | 921553d7bb38345ba99c069fa1ee7816d5130c9b (patch) | |
tree | 879a0384b9a4bc93e9b3c3c476812c660b7e63b4 /src/fd_util.c | |
parent | 27946a981ff4192f064feb3117567463c137933f (diff) | |
parent | c476819cb1186770b1b7395851e394caac39cbc8 (diff) | |
download | mpd-921553d7bb38345ba99c069fa1ee7816d5130c9b.tar.gz mpd-921553d7bb38345ba99c069fa1ee7816d5130c9b.tar.xz mpd-921553d7bb38345ba99c069fa1ee7816d5130c9b.zip |
Merge branch 'v0.16.x'
Diffstat (limited to 'src/fd_util.c')
-rw-r--r-- | src/fd_util.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fd_util.c b/src/fd_util.c index 36f6e2fc9..882b4c7d5 100644 --- a/src/fd_util.c +++ b/src/fd_util.c @@ -327,3 +327,13 @@ inotify_init_cloexec(void) } #endif + +int +close_socket(int fd) +{ +#ifdef WIN32 + return closesocket(fd); +#else + return close(fd); +#endif +} |