reenternat function build error

Using SunStudio12 rh4, get the following errors

"cmriSockaddr.cc", line 107: Error: The function "gethostbyname_r" must have a prototype.

"cmriSockaddr.cc", line 181: Error: The function "getservbyname_r" must have a prototype.

These both seem to be defined within

#ifdef __USE_MISC

The linux man page specifies these are gnu extensions and both of these exist on Solaris.

Suggestions?

[429 byte] By [Brett_Tiplitza] at [2007-11-27 0:36:02]
# 1
They really do exist on Solaris, albeit under different ifdefs:#ifdef __STDC__#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
MaximKartasheva at 2007-7-11 22:45:09 > top of Java-index,Development Tools,Solaris and Linux Development Tools...