Google

Back to the Main Page.

ac_prototype_accept

Download the M4 Source.

Synopsis

AC_PROTOTYPE_ACCEPT

Version

1.1.1.1 (2001/07/26)     Miscellaneous @ ac-archive-0.5.39

Author

Loic Dachary <loic@senga.org>

Description

Requires the AC_PROTOTYPE macro.

Find the type of argument two and three of accept. User must include the following in acconfig.h:

/* Type of second argument of accept */ #undef ACCEPT_ARG2

/* Type of third argument of accept */ #undef ACCEPT_ARG3

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