summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-22 13:30:09 +0200
committerMax Kellermann <max@duempel.org>2012-08-22 15:51:56 +0200
commitaf4252bc8043487a47a42a07326caf44bc78714f (patch)
tree37d747b4be9b67841c155e505b94bf1f12fec0e3 /src
parent695ffedef9a33c1ffd02096defd97a67d3378537 (diff)
fd_util: make C++ safe
Diffstat (limited to 'src')
-rw-r--r--src/fd_util.h8
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