1 /* src/config/afsconfig.h.in. Generated automatically from configure.in by autoheader. */
2 /* Modified for Win2000 build*/
5 System headers sometimes define this.
6 We just want to avoid a redefinition error message. */
11 /* Define to empty if the keyword does not work. */
14 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
15 #undef HAVE_SYS_WAIT_H
17 /* Define as __inline if that's what the C compiler calls it. */
18 #define inline __inline
20 /* Define if on MINIX. */
23 /* Define to `int' if <sys/types.h> doesn't define. */
26 /* Define if the system does not provide POSIX.1 features except
28 #undef _POSIX_1_SOURCE
30 /* Define if you need to in order for stat and other things to work. */
33 /* The size of `long', as computed by sizeof. */
36 /* Define to `unsigned' if <sys/types.h> doesn't define. */
37 //#undef size_t unsigned int
39 /* Define if you have the ANSI C header files. */
42 /* Define if lex declares yytext as a char * by default, not a char[]. */
45 /* Define if you have the connect function. */
48 /* Define if you have the error_message function. */
49 #define HAVE_ERROR_MESSAGE
51 /* Define if you have the gethostbyname function. */
52 #define HAVE_GETHOSTBYNAME
54 /* Define if you have the res_search function. */
55 #undef HAVE_RES_SEARCH
57 /* Define if you have the socket function. */
60 /* Define if you have the <direct.h> header file. */
63 /* Define if you have the <dirent.h> header file. */
64 #define HAVE_DIRENT_H 1
66 /* Define if you have the <fcntl.h> header file. */
69 /* Define if you have the <mntent.h> header file. */
72 /* Define if you have the <ndir.h> header file. */
75 /* Define if you have the <netdb.h> header file. */
78 /* Define if you have the <netinet/in.h> header file. */
79 #undef HAVE_NETINET_IN_H
81 /* Define if you have the <security/pam_modules.h> header file. */
82 #undef HAVE_SECURITY_PAM_MODULES_H
84 /* Define if you have the <signal.h> header file. */
87 /* Define if you have the <stdlib.h> header file. */
90 /* Define if you have the <string.h> header file. */
93 /* Define if you have the <strings.h> header file. */
96 /* Define if you have the <sys/dir.h> header file. */
99 /* Define if you have the <sys/fcntl.h> header file. */
100 #define HAVE_SYS_FCNTL_H
102 /* Define if you have the <sys/file.h> header file. */
103 #undef HAVE_SYS_FILE_H
105 /* Define if you have the <sys/fs_types.h> header file. */
106 #undef HAVE_SYS_FS_TYPES_H
108 /* Define if you have the <sys/mntent.h> header file. */
109 #undef HAVE_SYS_MNTENT_H
111 /* Define if you have the <sys/mnttab.h> header file. */
112 #undef HAVE_SYS_MNTTAB_H
114 /* Define if you have the <sys/mount.h> header file. */
115 #undef HAVE_SYS_MOUNT_H
117 /* Define if you have the <sys/ndir.h> header file. */
118 #undef HAVE_SYS_NDIR_H
120 /* Define if you have the <sys/param.h> header file. */
121 #undef HAVE_SYS_PARAM_H
123 /* Define if you have the <sys/stat.h> header file. */
124 #define HAVE_SYS_STAT_H 1
126 /* Define if you have the <sys/time.h> header file. */
127 #undef HAVE_SYS_TIME_H
129 /* Define if you have the <sys/vfs.h> header file. */
130 #undef HAVE_SYS_VFS_H
132 /* Define if you have the <termios.h> header file. */
133 #undef HAVE_TERMIOS_H
135 /* Define if you have the <unistd.h> header file. */
138 /* Define if you have the <windows.h> header file. */
139 #define HAVE_WINDOWS_H
141 /* Define if you have the <winsock2.h> header file. */
142 #define HAVE_WINSOCK2_H
146 /* Name of package */
149 /* Version number of package */
152 /* define if target is big endian */
153 #undef WORDS_BIGENDIAN
155 /* define if sys/param.h defines the endiness */
156 #undef ENDIANESS_IN_SYS_PARAM_H
158 /* define if struct ufsvfs has vfs_dqrwlock */
159 #undef HAVE_VFS_DQRWLOCK
161 /* define if you have pread() and pwrite() */
168 //#undef HAVE_GETHOSTBYNAME
169 #undef HAVE_RES_SEARCH
172 #ifdef ENDIANESS_IN_SYS_PARAM_H
174 # include <sys/types.h>
175 # include <sys/param.h>
176 # if BYTE_ORDER == BIG_ENDIAN
177 # define WORDS_BIGENDIAN 1
182 #define AFS_NAMEI_ENV 1
187 #undef INODE_SETATTR_NOT_VOID
188 #undef STRUCT_INODE_HAS_I_BYTES
189 #undef STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK
191 /* glue for RedHat kernel bug */
192 #undef ENABLE_REDHAT_BUILDSYS
194 #if defined(ENABLE_REDHAT_BUILDSYS) && defined(KERNEL) && defined(REDHAT_FIX)
195 #include "redhat-fix.h"
198 /* Define if rename() does not unlink an existing file */
199 #define RENAME_DOES_NOT_UNLINK 1
201 /* Windows does not provide socklen_t prior to WDK 6.0 */
202 #define HAVE_SOCKLEN_T 1
203 typedef int socklen_t;
205 #if (_MSC_VER < 1400)
210 * UNIX mode symbol definitions
213 #define S_IRWXU 00700
214 #define S_IRUSR 00400
215 #define S_IWUSR 00200
216 #define S_IXUSR 00100
220 #define S_IRWXG 00070
221 #define S_IRGRP 00040
222 #define S_IWGRP 00020
223 #define S_IXGRP 00010
227 #define S_IRWXO 00007
228 #define S_IROTH 00004
229 #define S_IWOTH 00002
230 #define S_IXOTH 00001
234 #define S_ISUID 0004000
235 #define S_ISGID 0002000
236 #define S_ISVTX 0001000
239 #define HAVE_CONIO_H 1
243 /* param.h overrides lstat, so stop roken getting involved */
246 #define HAVE_STRCASECMP 1
248 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
250 #define HAVE_DECL_H_ERRNO 1
252 #define HAVE_STRUCT_ADDRINFO 1
253 #define HAVE_GETADDRINFO 1
254 #define HAVE_GETNAMEINFO 1
255 #define HAVE_FREENAMEINFO 1
256 #define HAVE_FREEADDRINFO 1
257 #define HAVE_GAI_STRERROR 1
258 #define HAVE_STRERROR 1
259 #define HAVE_STRLWR 1
260 #define HAVE_STRDUP 1
261 #define HAVE_GETHOSTNAME 1
262 #define HAVE_STRFTIME 1
263 #define HAVE_GETCWD 1
264 #define HAVE_STRUPR 1
265 #define HAVE_UINTPTR_T 1
266 #define HAVE_TIMEGM 1
268 /* Build against Heimdal */
269 #define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
270 #define HAVE_KRB5_CREDS_SESSION 1
272 /* Build afsroken.dll as a dynamic library */
273 #define ROKEN_LIB_DYNAMIC 1
275 #define MAX(a,b) (((a) > (b)) ? (a) : (b))
276 #define MIN(a,b) (((a) < (b)) ? (a) : (b))