diff options
author | Max Kellermann <max@duempel.org> | 2012-08-22 13:30:09 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-22 15:51:56 +0200 |
commit | af4252bc8043487a47a42a07326caf44bc78714f (patch) | |
tree | 37d747b4be9b67841c155e505b94bf1f12fec0e3 /src | |
parent | 695ffedef9a33c1ffd02096defd97a67d3378537 (diff) | |
download | mpd-af4252bc8043487a47a42a07326caf44bc78714f.tar.gz mpd-af4252bc8043487a47a42a07326caf44bc78714f.tar.xz mpd-af4252bc8043487a47a42a07326caf44bc78714f.zip |
fd_util: make C++ safe
Diffstat (limited to 'src')
-rw-r--r-- | src/fd_util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fd_util.h b/src/fd_util.h index dd4df7a13..c8a17c7ef 100644 --- a/src/fd_util.h +++ b/src/fd_util.h @@ -51,6 +51,10 @@ struct sockaddr; +#ifdef __cplusplus +extern "C" { +#endif + /** * Wrapper for dup(), which sets the CLOEXEC flag on the new * descriptor. @@ -146,4 +150,8 @@ inotify_init_cloexec(void); int close_socket(int fd); +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif |