Hi,
I have two questions - firstly, is support for sys/poll something that is planned for PSPSDK?
Secondly, can somebody help me come up with a workaround for the timebeing?...
I'm working on a porting project and I need sys/poll.h. I notice this is not in the PSPSDK yet (unless I'm mistaken). Since I'm using Cygwin, I copied /usr/include/sys/poll.h to /usr/local/pspdev/psp/include/sys and the compiler is happy at least! The linker on the other hand is complaining of an undefined reference to poll. I did some searching and found that poll is part of the standard C library. I added -lc to my Makefile but still no luck. I always get the same error:
/cygdrive/d/code/test.cpp:156: undefined reference to `poll'
Any ideas? Thanks!
PS: Perhaps I can help with the porting of sys/poll to the PSPSDK - where do I start - i.e. which source files are used as the starting point? Thanks
UPDATE
---------
I found a workaround - to use select() instead of poll() - there was an example of how to do this in the source for libcurl. I do still need the datatypes from poll.h for this workaround, just not the implementation of poll().