proper gethostebyname_r detection
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@421 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
9c95febcdd
commit
f09846d3e9
|
@ -45,7 +45,8 @@ sun)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_CHECK_HEADERS([netinet/sctp.h])
|
AC_CHECK_HEADERS([netinet/sctp.h netdb.h])
|
||||||
|
AC_CHECK_FUNCS([gethostbyname_r])
|
||||||
|
|
||||||
# Enable debugging
|
# Enable debugging
|
||||||
AC_ARG_ENABLE(debug,
|
AC_ARG_ENABLE(debug,
|
||||||
|
|
|
@ -30,15 +30,21 @@
|
||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if HAVE_NETDB_H
|
||||||
|
#include <netdb.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "openzap.h"
|
#include "openzap.h"
|
||||||
#include <ss7_boost_client.h>
|
#include <ss7_boost_client.h>
|
||||||
|
|
||||||
#ifndef gethostbyname_r
|
|
||||||
extern int gethostbyname_r (__const char *__restrict __name,
|
#ifndef HAVE_GETHOSTBYNAME_R
|
||||||
struct hostent *__restrict __result_buf,
|
extern int gethostbyname_r (const char *__name,
|
||||||
char *__restrict __buf, size_t __buflen,
|
struct hostent *__result_buf,
|
||||||
struct hostent **__restrict __result,
|
char *__buf, size_t __buflen,
|
||||||
int *__restrict __h_errnop);
|
struct hostent **__result,
|
||||||
|
int *__h_errnop);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct ss7bc_map {
|
struct ss7bc_map {
|
||||||
|
|
Loading…
Reference in New Issue