When using this tool, one should not have to go around the world to satisfy all the header requirements of your code; in your example, you pre-include <sys/types.h>, , , and to fulfill the definitions used by your own header rather than to fulfill the definition requirements of the end-program: these belong (possibly along with some processor code for C/C++ interoperability) at the top of rather than as a constant part of the user's code because you use them as opposed to the end user using them.
Because you closed this without fixing your problem, I'm going to build my own Fast CGI Application Interface instead of using yours. However, because I'm a nice guy, I've attached the 12 page error log your code produces due to the issue.
When using this tool, one should not have to go around the world to satisfy all the header requirements of your code; in your example, you pre-include <sys/types.h>,, , and to fulfill the definitions used by your own header rather than to fulfill the definition requirements of the end-program: these belong (possibly along with some processor code for C/C++ interoperability) at the top of rather than as a constant part of the user's code because you use them as opposed to the end user using them.