Rename C++ header files to .hpp
[lttng-tools.git] / src / common / compat / errno.hpp
diff --git a/src/common/compat/errno.hpp b/src/common/compat/errno.hpp
new file mode 100644 (file)
index 0000000..2044439
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) 2020 Michael Jeanson <mjeanson@efficios.com>
+ *
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ */
+
+#ifndef _COMPAT_ERRNO_H
+#define _COMPAT_ERRNO_H
+
+#include <errno.h>
+
+/* Missing on FreeBSD */
+#ifndef ENODATA
+#define ENODATA ENOATTR
+#endif
+
+#endif /* _COMPAT_ERRNO_H */
This page took 0.024198 seconds and 4 git commands to generate.