dnl @synopsis AC_PROTOTYPE_SETSOCKOPT
dnl
dnl Requires the AC_PROTOTYPE macro.
dnl
dnl Find the type of argument three of setsockopt. User
dnl must include the following in acconfig.h:
dnl
dnl /* Type of third argument of setsockopt */
dnl #undef SETSOCKOPT_ARG3
dnl
dnl @version $Id: ac_prototype_setsockopt.m4,v 1.1.1.1 2001/07/26 00:46 ac-archive-0.5.39 $
dnl @author Loic Dachary <loic@senga.org>
dnl
AC_DEFUN([AC_PROTOTYPE_SETSOCKOPT],[
AC_PROTOTYPE(setsockopt,
 [
  #include <sys/types.h>
  #include <sys/socket.h>
 ],
 [
  int a = 0;
  ARG3 b = 0;
  setsockopt(a, SOL_SOCKET, SO_REUSEADDR, b, sizeof(a));
 ],
 ARG3, [const void*, const char*, void*, char*])
])
