~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/client.c

  • Committer: Brian Aker
  • Date: 2008-08-08 23:19:04 UTC
  • Revision ID: brian@tangent.org-20080808231904-jwzzpbknce3k7523
OSX fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
    errno= EINTR;
170
170
    return -1;
171
171
  }
172
 
  if (res < 0 || !(ufds.revents & (POLLIN | POLLPRI)))
 
172
  if (res < 0 || !(ufds.revents & (POLLIN | POLLPRI)) || (ufds.revents & POLLHUP))
173
173
    return -1;
174
174
  return 0;
175
175
}
1270
1270
 
1271
1271
    memset(&hints, 0, sizeof(hints));
1272
1272
    hints.ai_socktype= SOCK_STREAM;
 
1273
    /* OSX 10.5 was failing unless defined only as support IPV4 */
 
1274
#ifdef TARGET_OS_OSX
 
1275
    hints.ai_family= AF_INET;
 
1276
#endif
 
1277
 
1273
1278
 
1274
1279
    snprintf(port_buf, NI_MAXSERV, "%d", port);
1275
1280
    gai_errno= getaddrinfo(host, port_buf, &hints, &res_lst);