Additional resources are available here for reference material.
If your application program uses the poll system call then you need to include one or the other of the following lines depending upon the kernel version that the application is intended to run on. For kernel versions in the 2.2 group, use the following in order to include poll.h from the kernel's source tree. Linking Options When you perform the final link of your application using cc or gcc, add the following to the end of your list of files and libraries to be linked.