>>>>> "PE" == Peter Eisentraut <[EMAIL PROTECTED]> writes:

PE> 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 */

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.  On to fix
other XEmacs bugs....  But the autoconf maintainers should have higher
standards than I.  Then again, they need to drop support for antique
systems at some point as well.  I'm happy if I can cover all the
"successful" systems with vintages in the last 8 years or so, and I've
dropped support for K&R.

Martin

Reply via email to