+ if (errno == EACCES)
+ had_eacces = 1;
+ }
+ if (fd == -1) {
+ fprintf(stderr, "No compatible devices found.\n");
+ if (had_eacces)
+ fprintf(stderr, "At least one device "
+ "could not be checked because "
+ "of lack of permissions for "
+ "/dev/hidraw*.\n");