~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzleclient/viosocket.c

  • Committer: Brian Aker
  • Date: 2009-02-02 23:10:18 UTC
  • mfrom: (779.3.40 devel)
  • Revision ID: brian@tangent.org-20090202231018-zlp0hka6kgwy1vfy
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#define DONT_MAP_VIO
24
24
#include <drizzled/global.h>
25
 
#include <libdrizzle/vio.h>
 
25
#include "vio.h"
 
26
#include <drizzled/util/test.h>
 
27
 
26
28
#include <sys/socket.h>
27
 
#include <drizzled/util/test.h>
28
29
#include <string.h>
29
30
 
30
31
#include <netinet/tcp.h>
298
299
  error= setsockopt(vio->sd, SOL_SOCKET, is_sndtimeo ? SO_SNDTIMEO : SO_RCVTIMEO,
299
300
                    &wait_timeout,
300
301
                    (socklen_t)sizeof(struct timeval));
301
 
  if (error != 0)
 
302
  if (error == -1 && errno != ENOPROTOOPT)
302
303
  {
303
304
    perror("setsockopt");
304
305
    assert(error == 0);