if (cp)
return 1;
}
-#ifdef HAVE_ERRNO_H
else if (errno == EACCES) {
if (!protection_warned) {
fgWarning ( "Can't open %s for read!", buf );
protection_warned = 1;
}
}
-#endif
}
return 0;
}
if ( ( rd = hid_get_report_desc( os->fd ) ) == 0 )
{
-#ifdef HAVE_ERRNO_H
fgWarning ( "error: %s: %s", os->fname, strerror( errno ) );
-#else
- fgWarning ( "error: %s", os->fname );
-#endif
return FALSE;
}
if( ioctl( os->fd, USB_GET_REPORT_ID, &report_id ) < 0)
{
/*** XXX {report_id} may not be the right variable? ***/
-#ifdef HAVE_ERRNO_H
fgWarning ( "error: %s%d: %s", UHIDDEV, report_id, strerror( errno ) );
-#else
- fgWarning ( "error: %s%d", UHIDDEV, report_id );
-#endif
return FALSE;
}