AC_DEFUN([AC_PROTOTYPE_GETSOCKNAME],[
AC_PROTOTYPE(getsockname,
[
#include <sys/types.h>
#include <sys/socket.h>
],
[
int a = 0;
ARG2 * b = 0;
ARG3 * c = 0;
getsockname(a, b, c);
],
ARG2, [struct sockaddr, void],
ARG3, [socklen_t, size_t, int, unsigned int, long unsigned int])
])