~brianaker/gearmand/734663

« back to all changes in this revision

Viewing changes to examples/wc_worker.c

  • Committer: Brian Aker
  • Date: 2011-02-15 01:48:22 UTC
  • mfrom: (373.1.5 gearmand-trunk)
  • Revision ID: brian@tangent.org-20110215014822-2rbjyk2a1stv4pev
Merge in bug fix for memcached, and various icc failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 * @brief Example Worker
12
12
 */
13
13
 
 
14
#include "config.h"
 
15
 
14
16
#include <errno.h>
15
17
#include <stdio.h>
16
18
#include <stdlib.h>
17
19
#include <string.h>
18
20
#include <unistd.h>
19
21
 
 
22
#ifdef HAVE_GETOPT_H
 
23
#include <getopt.h>
 
24
#endif
 
25
 
20
26
#include <libgearman/gearman.h>
21
27
 
22
28
static void *wc(gearman_job_st *job, void *context, size_t *result_size,