problem with includes: pc_keyb.h
Hello guys!
I tried to include pc_keyb.h into my project, but it fails:
In file included from test_pc_keybh.c:1:/usr/include/linux/pc_keyb.h:127: parse error before `wait_queue_head_t'
/usr/include/linux/pc_keyb.h:127: warning: no semicolon at end of struct or union/usr/include/linux/pc_keyb.h:130: parse error before `}'
I tried to include linux/sched.h before, but that didn't work either (seems to have problems with sys/time.h).
What to do ?
Sincerly,
Nico
Hello!
Quoted 5 lines
I tried to include
pc_keyb.hinto my project, but it fails:In file included from test_pc_keybh.c:1:
/usr/include/linux/pc_keyb.h:127: parse error before `wait_queue_head_t'
Quoted 8 lines
/usr/include/linux/pc_keyb.h:127: warning: no semicolon at end of struct or union/usr/include/linux/pc_keyb.h:130: parse error before `}'I tried to include
linux/sched.hbefore, but that didn't work either (seems to have problems withsys/time.h).What to do ?
<linux/pc_keyb.h> is a kernel include which shouldn't be included by user-space code. What parts of it do you need?
Have a nice fortnight
Signature · 3 lines
Martin `MJ' Mares <[email protected]> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth How an engineer writes a program: Start by debugging an empty file...