#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
#error "Please add support for your OS."
#endif /* __linux__ , __FreeBSD__, __CYGWIN__, __sun__, __APPLE__ */
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _COMPAT_FCNTL_H */