common: compile libconfig as C++
[lttng-tools.git] / src / common / compat / fcntl.h
index ef97bf9da3ffc54c7560eacf688c0cc92e450f89..8bbdfe89cc75c122bda2ea7b77db27ca0727ebf6 100644 (file)
@@ -9,9 +9,14 @@
 #define _COMPAT_FCNTL_H
 
 #include <fcntl.h>
-#include <errno.h>
 #include <sys/types.h>
 
+#include <common/compat/errno.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #if (defined(__CYGWIN__))
 typedef long long off64_t;
 #endif
@@ -63,4 +68,8 @@ static inline ssize_t splice(int fd_in, loff_t *off_in, int fd_out, loff_t *off_
 #error "Please add support for your OS."
 #endif /* __linux__ , __FreeBSD__, __CYGWIN__, __sun__, __APPLE__ */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _COMPAT_FCNTL_H */
This page took 0.023552 seconds and 4 git commands to generate.