Martin Buchholz writes:

> PE> ac_func_accept_argtypes.m4 from the Autoconf macro archive addresses this
> PE> problem. There are actually more than three possible prototypes for
> PE> accept(); and the first and second argument have been known to vary as
> PE> well.
> 
> Hmmm.  For my purposes this is overkill.  All the other functions in
> that family, like sendto, bind, etc... all have socklen_t arguments,
> and I don't want to have specific tests for all of them.

You don't have to. The only functions affected are the ones taking
pointers to some integer type, which are accept() and getsockopt(). You
can probably assume that the third argument of accept() can also be used
as the 5th argument of getsockopt().

But you're right, testing for argument 1 and 2 of accept() is probably
useless, but I found this macro and just used it as is.

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

Reply via email to