From: <li...@ba...> - 2009-01-19 07:46:15
|
Hi! Paul Bender "peb...@gm..." wrote: > In CVS changes to includes of the various types.h headers have broken > compilation of daemons/hw_livedrive_midi.c and > daemons/hw_livedrive_seq.c. I did not track down the root cause. > However, I did notice that all the other daemons/hw_*.c files include > <sys/types.h> before any of the lirc specific header files, so I added > them to the two files that would not compile and they compiled. I have > attached the patch that does this. That's the wrong approach. I guess the error comes from lirc.h. Every include file should include the files it requires, so you should not need to include other files before you include that one. Does including <sys/types.h> after <linux/types.h> in lirc.h fix the problem? Christoph |