Portability patches from Kevin Dalley for Freebsd 4.0.
[awesomized/libmemcached] / src / utilities.h
1 #include <memcached.h>
2 #include <getopt.h>
3 #include "client_options.h"
4 #include "libmemcached_config.h"
5
6 #if TIME_WITH_SYS_TIME
7 # include <sys/time.h>
8 # include <time.h>
9 #else
10 # if HAVE_SYS_TIME_H
11 # include <sys/time.h>
12 # else
13 # include <time.h>
14 # endif
15 #endif
16
17 typedef struct memcached_programs_help_st memcached_programs_help_st;
18
19 struct memcached_programs_help_st
20 {
21 char *not_used_yet;
22 };
23
24 char *strdup_cleanup(const char *str);
25 void cleanup(void);
26 long int timedif(struct timeval a, struct timeval b);
27 void version_command(char *command_name);
28 void help_command(char *command_name, char *description,
29 const struct option *long_options,
30 memcached_programs_help_st *options);