Cosmin Luţă wrote:
The autotools does this:
arg1 in int SOCKET;
arg2 in 'struct sockaddr' void;
t in socklen_t int size_t 'unsigned int' long 'unsigned long'
void; extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
I guess I should do the same for CMake?
I've see something similar in CMake/OtherTests.cmake for determining the
arg and ret types of send()/recv(); perhaps you could do the same?
Yes, I could. Seems a bit brute force. Is there no other way to find
this? We are looking for $t but vary arg1 and arg2. Seems like there
should be a better way to figure this out.
-Bill