aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2012-12-08 19:35:26 +0100
committerGregor Jasny <gjasny@googlemail.com>2012-12-08 19:35:26 +0100
commit797f92823667afe2fe0325aa5656fea96c13f5d3 (patch)
tree86eb0c5778ed00c63917a84e280f9ffc2aa3fa37
parentdc959f7ad929e4a74b2a9317d9a1c2bfc0365117 (diff)
v4l-compliance: Work around missing ENODATA on (k)FreeBSD
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
-rw-r--r--utils/v4l2-compliance/v4l2-compliance.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/v4l2-compliance/v4l2-compliance.h b/utils/v4l2-compliance/v4l2-compliance.h
index a6bc97bd..7c89f73c 100644
--- a/utils/v4l2-compliance/v4l2-compliance.h
+++ b/utils/v4l2-compliance/v4l2-compliance.h
@@ -21,12 +21,17 @@
#ifndef _V4L2_COMPLIANCE_H_
#define _V4L2_COMPLIANCE_H_
+#include <cerrno>
#include <string>
#include <list>
#include <set>
#include <linux/videodev2.h>
#include <libv4l2.h>
+#if !defined(ENODATA) && (defined(__FreeBSD__) || defined(__FreeBSD_kernel__))
+#define ENODATA ENOTSUP
+#endif
+
extern int verbose;
extern int wrapper;
extern int kernel_version;

Privacy Policy