Martin Buchholz writes:

> Functions like accept are known to have THREE different prototypes:
> 
> int accept (int, struct sockaddr *, socklen_t *); /* Linux, Unix98 */
> int accept (int, struct sockaddr *, size_t *); /* Solaris 2.6 */
> int accept (int, struct sockaddr *, int *); /* DEC OSF 4.0e */

ac_func_accept_argtypes.m4 from the Autoconf macro archive addresses this
problem. There are actually more than three possible prototypes for
accept(); and the first and second argument have been known to vary as
well.


-- 
Peter Eisentraut                  Sernanders väg 10:115
[EMAIL PROTECTED]                   75262 Uppsala
http://yi.org/peter-e/            Sweden

Reply via email to