On Fri, 15 Sep 2000, Rein Klazes wrote:
> Exactly, but according to my knowledge (Steven's Unix Network
> Programming) the gethostbyaddr_r() is different on Solaris and other
> platforms. Different arguments and so. A bit hard to make a configure
> test unles you put your knowledge of platforms in. Tht's why I thougt
> an "ifdef <platform>" isn't al that different.
No, by all means, it is rather different (and much worse).
1. With configure you have a singe point to update in case of future
(OS) changes.
2. Different versions of some platform may behave differently and offer
different ABIs.
3. configure already has lots of existing checks, perhaps there is even
one for that case?
4. If this is not the case, add such a test and submit it to the
configure maintainers! This will help others and others may even
improve that code/maintain it in the future.
Gerald
--
Gerald "Jerry" [EMAIL PROTECTED] http://www.dbai.tuwien.ac.at/~pfeifer/