~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/viosocket.c

  • Committer: Monty Taylor
  • Date: 2009-01-28 20:14:03 UTC
  • mto: (779.7.3 devel)
  • mto: This revision was merged to the branch mainline in revision 823.
  • Revision ID: mordred@inaugust.com-20090128201403-mx81zzphbni49hq1
Fixed solaris setsockopt issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
  error= setsockopt(vio->sd, SOL_SOCKET, is_sndtimeo ? SO_SNDTIMEO : SO_RCVTIMEO,
299
299
                    &wait_timeout,
300
300
                    (socklen_t)sizeof(struct timeval));
301
 
  if (error != 0)
 
301
  if (error == -1 && errno != ENOPROTOOPT)
302
302
  {
303
303
    perror("setsockopt");
304
304
    assert(error == 0);