00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00030 #ifndef INCLUDES_H
00031 #define INCLUDES_H
00032
00033 #if defined(osf1) && !defined(__osf__)
00034 # define __osf__
00035 #endif
00036
00037 #if defined(sgi) && !defined(__sgi__)
00038 # define __sgi__
00039 #endif
00040
00041 #ifdef sun
00042 # ifndef __sun__
00043 # define __sun__
00044 # endif
00045 #endif
00046
00047 #if defined(ultrix) && !defined(__ultrix__)
00048 # define __ultrix__
00049 #endif
00050
00051
00052 #ifdef WIN32
00053 # include "win32.h"
00054 #else
00055 # include <autoconf.h>
00056 #endif
00057
00058 #include <stdio.h>
00059 #include <string.h>
00060 #include <ctype.h>
00061 #include <errno.h>
00062 #include <signal.h>
00063 #include <setjmp.h>
00064 #include <stdlib.h>
00065 #include <limits.h>
00066
00067 #ifdef HAVE_FCNTL_H
00068 # include <fcntl.h>
00069 #endif
00070
00071 #ifdef HAVE_LIBDMALLOC
00072 # include <dmalloc.h>
00073 #endif
00074
00075 #ifdef HAVE_UNISTD_H
00076 # include <unistd.h>
00077 #endif
00078
00079 #ifdef HAVE_SYS_TIME_H
00080 # include <sys/time.h>
00081 #endif
00082
00083 #if defined(HAVE_TIME_H) && defined(TIME_WITH_SYS_TIME)
00084 # include <time.h>
00085 #endif
00086
00087
00088 #ifdef HAVE_STDDEF_H
00089 # include <stddef.h>
00090 #endif
00091
00092 #include <sys/types.h>
00093
00094 #include <sys/stat.h>
00095
00096 #include "config.h"
00097 #include "define.h"
00098 #include "version.h"
00099 #include "logger.h"
00100 #include "newclient.h"
00101
00102 #ifdef HAVE_STRICMP
00103 # define strcasecmp(_s1_, _s2_) stricmp(_s1_, _s2_)
00104 #endif
00105
00106 #ifdef HAVE_STRNICMP
00107 # define strncasecmp(_s1_, _s2_, _nrof_) strnicmp(_s1_, _s2_, _nrof_)
00108 #endif
00109
00110 #if defined(vax) || defined(ibm032)
00111 size_t strftime(char *, size_t, const char *, const struct tm *);
00112 time_t mktime(struct tm *);
00113 #endif
00114
00115 #ifndef WIN32
00116 # if HAVE_DIRENT_H
00117 # include <dirent.h>
00118 # define NAMLEN(dirent) strlen((dirent)->d_name)
00119 # else
00120 # define dirent direct
00121 # define NAMLEN(dirent) (dirnet)->d_namlen
00122 # if HAVE_SYS_NDIR_H
00123 # include <sys/ndir.h>
00124 # endif
00125 # if HAVE_SYS_DIR_H
00126 # include <sys/dir.h>
00127 # endif
00128 # if HAVE_NDIR_H
00129 # include <ndir.h>
00130 # endif
00131 # endif
00132 #endif
00133
00134 #endif