1 #include <stdio.h>
2 #include <cstdlib>
3 #if !defined(_WIN32) || defined(__CYGWIN__)
4 # include <sys/types.h>
5 # include <sys/socket.h>
6 #endif
7 
main()8 int main()
9 {
10   /* Test whether getsockname takes socklen_t.  */
11   if(getsockname(0, 0, (socklen_t*)0)) return 0;
12   if(sizeof (socklen_t)) return 0;
13   return 0;
14 }
15