This patch changes CMakeLists.txt for portio driver which uses inb_p() and outb_p() functions/macros that should be defined in sys/io,h (or their friends from hw/inout.h on QNX); by default, on systems other than QNX this driver will be turned off whenever the sys/io.h header file is not available. Unfortunately, recently I've found Linux distribution for PDA's (Maemo Linux) on which sys/io.h is actually available, however none of inb_p()/outb_p() is defined there. For such a case this driver should be also turned off. To add this check I had to mess bare cmake functions with player-cmake functions, I'm not sure about quality of what I done, at least it works fine on few different operating systems.
Log in to post a comment.