summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
Diffstat (limited to 'v4l')
-rw-r--r--v4l/compat.h5
-rwxr-xr-xv4l/scripts/check_config_defines.pl4
2 files changed, 7 insertions, 2 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 3192ef87d..b245c95e2 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -315,6 +315,11 @@ usb_to_input_id(const struct usb_device *dev, struct input_id *id)
#define PCIAGP_FAIL 0
#endif
+#ifndef true
+#define true 1
+#define false 0
+#endif
+
#endif
/*
* Local variables:
diff --git a/v4l/scripts/check_config_defines.pl b/v4l/scripts/check_config_defines.pl
index 91643d23c..6d0256dcf 100755
--- a/v4l/scripts/check_config_defines.pl
+++ b/v4l/scripts/check_config_defines.pl
@@ -12,8 +12,8 @@ if($#ARGV < 0) {
$kdir = shift;
if($#ARGV < 0) {
- @ARGV = `hg manifest | cut "-d " -f3 | grep '.[ch]\$'`;
- $? == 0 and die "Error getting manifest: $!";
+ @ARGV = `hg manifest | cut "-d " -f3 | grep \\.[ch]\$`;
+ $? != 0 and die "Error getting manifest: $!";
chomp @ARGV;
}