summaryrefslogtreecommitdiffstats
path: root/src/dnonblock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dnonblock.h')
-rw-r--r--src/dnonblock.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dnonblock.h b/src/dnonblock.h
index 62a45b3..6cb362b 100644
--- a/src/dnonblock.h
+++ b/src/dnonblock.h
@@ -19,6 +19,10 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \file
*
* Contains a single function used to change a file descriptor to
@@ -34,4 +38,8 @@
*/
int daemon_nonblock(int fd, int b);
+#ifdef __cplusplus
+}
+#endif
+
#endif