From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199707221233.IAA06498@everest.micro.umass.edu> Date: Tue, 22 Jul 1997 08:40:54 -0400 From: Michael Alan Dorman Subject: Re: libc In-Reply-To: <199707220345.XAA00315@adder.cs.Virginia.EDU> On Jul 21, Greg Lindahl wrote > Other OSes, not to mention Redhat 4.1/Intel, have int *. There is no > easy way to write compatible code for both cases. Sure there is. #ifdef __GLIBC__ # define sock_size_t size_t #else /* __GLIBC__ */ # define sock_size_t int #endif /* __GLIBC__ */ sock_size_t len; accept ( ..., &len ); This is exactly what the perl people have done---you should look at the code in 5.004, as it also knows about the proper defines for the new spec that specifies this. Mike. -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com