$ make
psp-gcc -c -Wall -pedantic socket.c
In file included from /usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/in
clude/sys/socket.h:15,
from socket.c:10:
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/include/cygwin/socket.h:
30: error: parse error before '__uid32_t'
In file included from /usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/sy
s-include/unistd.h:4,
from socket.c:15:
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/sys-include/sys/unistd.h
: In function '__declspec':
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/sys-include/sys/unistd.h
These are include files. Any idea what would be wrong?
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/include/cygwin/socket.h:
30: error: parse error before '__uid32_t'
You have a parse error right there. Check out the code at that point or google it... maybe it's something known. The other stuff is to just let you know how the compiler got to that point.
The "sockaddr" and other types are a little non-standard, but very close.
So if you need socket.h for porting your app, the future looks promising. For now, remove the header.