View | Details | Raw Unified
Collapse All | Expand All

(-) otp_src_R11B-4.orig/lib/erl_interface/src/connect/ei_resolve.c (-1 / +2 lines)
 Lines 44-49    Link Here 
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <errno.h>
#include <errno.h>
#include <sys/param.h>
#endif 
#endif 
/* common to all platforms */
/* common to all platforms */
 Lines 614-620    Link Here 
#ifndef HAVE_GETHOSTBYNAME_R
#ifndef HAVE_GETHOSTBYNAME_R
  return my_gethostbyname_r(name,hostp,buffer,buflen,h_errnop);
  return my_gethostbyname_r(name,hostp,buffer,buflen,h_errnop);
#else
#else
#ifdef __GLIBC__
#if (defined(__GLIBC__) || (__FreeBSD_version >= 602000))
  struct hostent *result;
  struct hostent *result;
  gethostbyname_r(name, hostp, buffer, buflen, &result, h_errnop);
  gethostbyname_r(name, hostp, buffer, buflen, &result, h_errnop);