Am Donnerstag, 8. Mai 2008 09:50:00 schrieb Julien Claassen:
Hello folks!
I'm soory for posting here, but I hope someone can help me. I'm just
compiling a bit of code and gcc gives a strange error, which Ican't fix.
Code snippet:
[...]
if (ioctl (vcsa_fd, KBD_SNIFF_SET, &set) < 0)
{
sbl_log ("no kernel support for keyboard sniffing\n");
kbd_sniffing = 0;
return 0;
}
else { ... }
/* end of snipet */
the reproduceable compiler error says something about the if-statement:
kbd.h:96: error: expected ')' before '[' token
It does the same for two other ioctl statements, one incuded in an if,
the other in an assignment like:
value = ioctl (...);
It's a bit hard to help you without having the exact source code and exact
error messages. The errors you're talking about could just be some
consecutive faults, the root cause(s) might be something completely
different.
CU
Christian