~d-ci/libmemcached/pushtest

« back to all changes in this revision

Viewing changes to libtest/memcached.cc

  • Committer: Continuous Integration
  • Date: 2013-01-28 22:54:43 UTC
  • mfrom: (1098.1.1 1.2)
  • Revision ID: ci@tangent.org-20130128225443-acu5o9wpr5nhjqob
Merge lp:~tangent-org/libmemcached/1.2-build/ Build: jenkins-Libmemcached-217

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
    return true;
192
192
  }
193
193
 
194
 
  bool build(size_t argc, const char *argv[]);
 
194
  bool build();
195
195
};
196
196
 
197
197
 
198
198
#include <sstream>
199
199
 
200
 
bool Memcached::build(size_t argc, const char *argv[])
 
200
bool Memcached::build()
201
201
{
202
202
  if (getuid() == 0 or geteuid() == 0)
203
203
  {
205
205
  }
206
206
 
207
207
  add_option("-l", "localhost");
208
 
#ifndef TARGET_OS_OSX
 
208
#ifdef __APPLE__
 
209
#else
209
210
  add_option("-m", "128");
210
211
  add_option("-M");
211
212
#endif
215
216
    add_option(sasl());
216
217
  }
217
218
 
218
 
  for (size_t x= 0 ; x < argc ; x++)
219
 
  {
220
 
    if (argv[x] == NULL)
221
 
    {
222
 
      break;
223
 
    }
224
 
 
225
 
    add_option(argv[x]);
226
 
  }
227
 
 
228
219
  return true;
229
220
}
230
221