Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00014 #ifndef __GEARMAN_COMMON_H__
00015 #define __GEARMAN_COMMON_H__
00016
00017 #include "config.h"
00018
00019 #ifdef HAVE_ASSERT_H
00020 #include <assert.h>
00021 #endif
00022 #ifdef HAVE_ERRNO_H
00023 #include <errno.h>
00024 #endif
00025 #ifdef HAVE_FCNTL_H
00026 #include <fcntl.h>
00027 #endif
00028 #ifdef HAVE_GETOPT_H
00029 #include <getopt.h>
00030 #endif
00031 #ifdef HAVE_PTHREAD
00032 #include <pthread.h>
00033 #endif
00034 #ifdef HAVE_STDARG_H
00035 #include <stdarg.h>
00036 #endif
00037 #ifdef HAVE_STDDEF_H
00038 #include <stddef.h>
00039 #endif
00040 #ifdef HAVE_STDIO_H
00041 #include <stdio.h>
00042 #endif
00043 #ifdef HAVE_STDLIB_H
00044 #include <stdlib.h>
00045 #endif
00046 #ifdef HAVE_STRING_H
00047 #include <string.h>
00048 #endif
00049 #ifdef HAVE_STRINGS_H
00050 #include <strings.h>
00051 #endif
00052 #ifdef HAVE_SYS_UTSNAME_H
00053 #include <sys/utsname.h>
00054 #endif
00055 #ifdef HAVE_SYS_TYPES_H
00056 #include <sys/types.h>
00057 #endif
00058 #ifdef HAVE_NETINET_TCP_H
00059 #include <netinet/tcp.h>
00060 #endif
00061 #ifdef HAVE_UNISTD_H
00062 #include <unistd.h>
00063 #endif
00064 #ifdef HAVE_UUID_UUID_H
00065 #include <uuid/uuid.h>
00066 #endif
00067
00068 #ifdef TIME_WITH_SYS_TIME
00069 # include <sys/time.h>
00070 # include <time.h>
00071 #else
00072 # ifdef HAVE_SYS_TIME_H
00073 # include <sys/time.h>
00074 # else
00075 # include <time.h>
00076 # endif
00077 #endif
00078
00079 #include <stdint.h>
00080 #include <limits.h>
00081
00082 #define BUILDING_LIBGEARMAN
00083 #define GEARMAN_CORE
00084
00085 #include "gearman.h"
00086
00087
00088 #include "libgearman/byteorder.h"
00089
00090 #endif