Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / src / config / afsconfig-windows.h
blob6e6a6c2ea7fbc26ab3c5c7d29d4b80e9b1301f4d
1 /* src/config/afsconfig.h.in. Generated automatically from configure.in by autoheader. */
2 /* Modified for Win2000 build*/
4 /* Define if on AIX 3.
5 System headers sometimes define this.
6 We just want to avoid a redefinition error message. */
7 #ifndef _ALL_SOURCE
8 #undef _ALL_SOURCE
9 #endif
11 /* Define to empty if the keyword does not work. */
12 #undef const
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. */
21 #undef _MINIX
23 /* Define to `int' if <sys/types.h> doesn't define. */
24 #undef pid_t
26 /* Define if the system does not provide POSIX.1 features except
27 with this defined. */
28 #undef _POSIX_1_SOURCE
30 /* Define if you need to in order for stat and other things to work. */
31 #undef _POSIX_SOURCE
33 /* Define as the return type of signal handlers (int or void). */
34 #undef RETSIGTYPE
37 /* The size of `long', as computed by sizeof. */
38 #define SIZEOF_LONG 4
40 /* Define to `unsigned' if <sys/types.h> doesn't define. */
41 //#undef size_t unsigned int
43 /* Define if you have the ANSI C header files. */
44 #undef STDC_HEADERS
46 /* Define if lex declares yytext as a char * by default, not a char[]. */
47 #undef YYTEXT_POINTER
49 /* Define if you have the connect function. */
50 #undef HAVE_CONNECT
52 /* Define if you have the error_message function. */
53 #define HAVE_ERROR_MESSAGE
55 /* Define if you have the gethostbyname function. */
56 #define HAVE_GETHOSTBYNAME
58 /* Define if you have the res_search function. */
59 #undef HAVE_RES_SEARCH
61 /* Define if you have the socket function. */
62 #define HAVE_SOCKET
64 /* Define if you have the <direct.h> header file. */
65 #undef HAVE_DIRECT_H
67 /* Define if you have the <dirent.h> header file. */
68 #define HAVE_DIRENT_H 1
70 /* Define if you have the <fcntl.h> header file. */
71 #define HAVE_FCNTL_H
73 /* Define if you have the <mntent.h> header file. */
74 #undef HAVE_MNTENT_H
76 /* Define if you have the <ndir.h> header file. */
77 #undef HAVE_NDIR_H
79 /* Define if you have the <netdb.h> header file. */
80 #undef HAVE_NETDB_H
82 /* Define if you have the <netinet/in.h> header file. */
83 #undef HAVE_NETINET_IN_H
85 /* Define if you have the <security/pam_modules.h> header file. */
86 #undef HAVE_SECURITY_PAM_MODULES_H
88 /* Define if you have the <signal.h> header file. */
89 #define HAVE_SIGNAL_H
91 /* Define if you have the <stdlib.h> header file. */
92 #define HAVE_STDLIB_H
94 /* Define if you have the <string.h> header file. */
95 #define HAVE_STRING_H
97 /* Define if you have the <strings.h> header file. */
98 #undef HAVE_STRINGS_H
100 /* Define if you have the <sys/dir.h> header file. */
101 #undef HAVE_SYS_DIR_H
103 /* Define if you have the <sys/fcntl.h> header file. */
104 #define HAVE_SYS_FCNTL_H
106 /* Define if you have the <sys/file.h> header file. */
107 #undef HAVE_SYS_FILE_H
109 /* Define if you have the <sys/fs_types.h> header file. */
110 #undef HAVE_SYS_FS_TYPES_H
112 /* Define if you have the <sys/mntent.h> header file. */
113 #undef HAVE_SYS_MNTENT_H
115 /* Define if you have the <sys/mnttab.h> header file. */
116 #undef HAVE_SYS_MNTTAB_H
118 /* Define if you have the <sys/mount.h> header file. */
119 #undef HAVE_SYS_MOUNT_H
121 /* Define if you have the <sys/ndir.h> header file. */
122 #undef HAVE_SYS_NDIR_H
124 /* Define if you have the <sys/param.h> header file. */
125 #undef HAVE_SYS_PARAM_H
127 /* Define if you have the <sys/stat.h> header file. */
128 #define HAVE_SYS_STAT_H 1
130 /* Define if you have the <sys/time.h> header file. */
131 #undef HAVE_SYS_TIME_H
133 /* Define if you have the <sys/vfs.h> header file. */
134 #undef HAVE_SYS_VFS_H
136 /* Define if you have the <termios.h> header file. */
137 #undef HAVE_TERMIOS_H
139 /* Define if you have the <unistd.h> header file. */
140 #undef HAVE_UNISTD_H
142 /* Define if you have the <windows.h> header file. */
143 #define HAVE_WINDOWS_H
145 /* Define if you have the <winsock2.h> header file. */
146 #define HAVE_WINSOCK2_H
148 #define HAVE_WINSOCK
150 /* Name of package */
151 #undef PACKAGE
153 /* Version number of package */
154 #undef VERSION
156 /* define if target is big endian */
157 #undef WORDS_BIGENDIAN
159 /* define if sys/param.h defines the endiness */
160 #undef ENDIANESS_IN_SYS_PARAM_H
162 /* define if struct ufsvfs has vfs_dqrwlock */
163 #undef HAVE_VFS_DQRWLOCK
165 /* define if you have pread() and pwrite() */
166 #define HAVE_PIO 1
168 #undef PACKAGE
169 #undef VERSION
171 #undef HAVE_CONNECT
172 //#undef HAVE_GETHOSTBYNAME
173 #undef HAVE_RES_SEARCH
174 //#undef HAVE_SOCKET
176 #ifdef ENDIANESS_IN_SYS_PARAM_H
177 # ifndef KERNEL
178 # include <sys/types.h>
179 # include <sys/param.h>
180 # if BYTE_ORDER == BIG_ENDIAN
181 # define WORDS_BIGENDIAN 1
182 # endif
183 # endif
184 #endif
186 #define AFS_NAMEI_ENV 1
188 #undef FAST_RESTART
189 #undef BITMAP_LATER
191 #undef INODE_SETATTR_NOT_VOID
192 #undef STRUCT_INODE_HAS_I_BYTES
193 #undef STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK
195 /* glue for RedHat kernel bug */
196 #undef ENABLE_REDHAT_BUILDSYS
198 #if defined(ENABLE_REDHAT_BUILDSYS) && defined(KERNEL) && defined(REDHAT_FIX)
199 #include "redhat-fix.h"
200 #endif
202 /* Define if rename() does not unlink an existing file */
203 #define RENAME_DOES_NOT_UNLINK 1
205 /* Windows does not provide socklen_t prior to WDK 6.0 */
206 #define HAVE_SOCKLEN_T 1
207 typedef int socklen_t;
209 #if (_MSC_VER < 1400)
210 typedef int errno_t;
211 #endif
214 * UNIX mode symbol definitions
216 #ifndef S_IRWXU
217 #define S_IRWXU 00700
218 #define S_IRUSR 00400
219 #define S_IWUSR 00200
220 #define S_IXUSR 00100
221 #endif
223 #ifndef S_IRWXG
224 #define S_IRWXG 00070
225 #define S_IRGRP 00040
226 #define S_IWGRP 00020
227 #define S_IXGRP 00010
228 #endif
230 #ifndef S_IRWXO
231 #define S_IRWXO 00007
232 #define S_IROTH 00004
233 #define S_IWOTH 00002
234 #define S_IXOTH 00001
235 #endif
237 #ifndef S_ISUID
238 #define S_ISUID 0004000
239 #define S_ISGID 0002000
240 #define S_ISVTX 0001000
241 #endif
243 #define HAVE_CONIO_H 1
245 #define HAVE_FSYNC 1
247 /* param.h overrides lstat, so stop roken getting involved */
248 #define HAVE_LSTAT 1
250 #define HAVE_STRCASECMP 1
252 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
254 #define HAVE_DECL_H_ERRNO 1
256 #define HAVE_STRUCT_ADDRINFO 1
257 #define HAVE_GETADDRINFO 1
258 #define HAVE_GETNAMEINFO 1
259 #define HAVE_FREENAMEINFO 1
260 #define HAVE_FREEADDRINFO 1
261 #define HAVE_GAI_STRERROR 1
262 #define HAVE_STRERROR 1
263 #define HAVE_STRLWR 1
264 #define HAVE_STRDUP 1
265 #define HAVE_GETHOSTNAME 1
266 #define HAVE_STRFTIME 1
267 #define HAVE_GETCWD 1
268 #define HAVE_STRUPR 1
269 #define HAVE_UINTPTR_T 1
270 #define HAVE_TIMEGM 1
272 /* Build against Heimdal */
273 #define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
274 #define HAVE_KRB5_CREDS_SESSION 1
276 /* Build afsroken.dll as a dynamic library */
277 #define ROKEN_LIB_DYNAMIC 1
279 #define MAX(a,b) (((a) > (b)) ? (a) : (b))
280 #define MIN(a,b) (((a) < (b)) ? (a) : (b))