Common Trace Format 2 generation
[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..18cb847
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) 2020 Michael Jeanson <mjeanson@efficios.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0-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.02735 seconds and 5 git commands to generate.