From af4252bc8043487a47a42a07326caf44bc78714f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Aug 2012 13:30:09 +0200 Subject: fd_util: make C++ safe --- src/fd_util.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3