From 4603973566067871c5811e94982360e680006bab Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 19 Jan 2004 17:14:59 +0000 Subject: (getUPS) use HIDIOCAPPLICATION ioctl definition from c module --- perl-install/detect_devices.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 47f3f91e0..486715387 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -444,8 +444,7 @@ sub getUPS() { my $hiddev_find_application = sub { my ($fd, $usage) = @_; my ($i, $ret) = 0; - # HIDIOCAPPLICATION from /usr/include/linux/hiddev.h: - do { $i++ } while ($ret = ioctl($fd, 0x4802, $i)) && $ret != $usage; + do { $i++ } while ($ret = ioctl($fd, c::HIDIOCAPPLICATION(), $i)) && $ret != $usage; return $ret == $usage ? 1 : 0; }; -- cgit v1.2.1