]> git.sur5r.net Git - openldap/blob - include/portable.h.nt
Add missing check for crypt.h
[openldap] / include / portable.h.nt
1 /* include/portable.h.nt -- manually updated of MS NT (MS VC5) */
2 /* synced with portable.h.in 1.21 */
3 /*
4 Copyright 1998 The OpenLDAP Foundation, Redwood City, California, USA
5 All rights reserved.
6
7 Redistribution and use in source and binary forms are permitted only
8 as authorized by the OpenLDAP Public License.  A copy of this
9 license is available at http://www.OpenLDAP.org/license.html or
10 in file LICENSE in the top-level directory of the distribution.
11
12 This work is derived from the University of Michigan LDAP v3.3
13 distribution.  Information concerning is available at
14     http://www.umich.edu/~dirsvcs/ldap/ldap.html.
15
16 This work also contains materials derived from public sources.
17
18 ---
19
20 Portions Copyright (c) 1992-1996 Regents of the University of Michigan.
21 All rights reserved.
22
23 Redistribution and use in source and binary forms are permitted
24 provided that this notice is preserved and that due credit is given
25 to the University of Michigan at Ann Arbor. The name of the University
26 may not be used to endorse or promote products derived from this 
27 software without specific prior written permission. This software
28 is provided ``as is'' without express or implied warranty.
29  
30 */
31
32 #ifndef _LDAP_PORTABLE_H
33 #define _LDAP_PORTABLE_H
34
35 /* MSVC5 doesn't define _STDC_ but supports _STDC_ features */
36 #define __NEED_PROTOTYPES 1
37 #define HAVE_STDARG 1
38
39 /* we installed Henry Spencer's REGEX */
40 #define HAVE_REGEX_H 1
41
42 /* win32 specific stuff */
43 #define strcasecmp      stricmp
44 #define strncasecmp     strnicmp
45 #define strdup          _strdup
46
47 /* define type for caddr_t */
48 typedef char * caddr_t;
49
50 /* we have spawnlp instead of fork/execlp */
51 #define HAVE_SPAWNLP 1
52
53 /* we have winsock2 */
54 #define HAVE_WINSOCK2 1
55
56 /* we have winsock */
57 #define HAVE_WINSOCK 1
58
59 /* we have <io.h> */
60 #define HAVE_IO_H 1
61
62 /* we have <process.h> */
63 #define HAVE_PROCESS_H 1
64
65 /* --------------------------------------------------- */
66
67 /* Define if on AIX 3.
68    System headers sometimes define this.
69    We just want to avoid a redefinition error message.  */
70 #ifndef _ALL_SOURCE
71 /* #undef _ALL_SOURCE */
72 #endif
73
74 /* Define to empty if the keyword does not work.  */
75 /* #undef const */
76
77 /* Define to the type of elements in the array set by `getgroups'.
78    Usually this is either `int' or `gid_t'.  */
79 /* #undef GETGROUPS_T */
80
81 /* Define to `int' if <sys/types.h> doesn't define.  */
82 #define gid_t long
83
84 /* Define if you don't have vprintf but do have _doprnt.  */
85 /* #undef HAVE_DOPRNT */
86
87 /* Define if your struct stat has st_blksize.  */
88 /* #undef HAVE_ST_BLKSIZE */
89
90 /* Define if you have the strftime function.  */
91 #define HAVE_STRFTIME 1
92
93 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
94 /* #undef HAVE_SYS_WAIT_H */
95
96 /* Define if you have the vprintf function.  */
97 #define HAVE_VPRINTF 1
98
99 /* Define if you have the wait3 system call.  */
100 /* #undef HAVE_WAIT3 */
101
102 /* Define if on MINIX.  */
103 /* #undef _MINIX */
104
105 /* Define to `int' if <sys/types.h> doesn't define.  */
106 #define mode_t int
107
108 /* Define to `long' if <sys/types.h> doesn't define.  */
109 /* #undef off_t */
110
111 /* Define to `int' if <sys/types.h> doesn't define.  */
112 #define pid_t int
113
114 /* Define if the system does not provide POSIX.1 features except
115    with this defined.  */
116 /* #undef _POSIX_1_SOURCE */
117
118 /* Define if you need to in order for stat and other things to work.  */
119 /* #undef _POSIX_SOURCE */
120
121 /* Define as the return type of signal handlers (int or void).  */
122 #define RETSIGTYPE void
123
124 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
125 /* #undef size_t */
126
127 /* Define if you have the ANSI C header files.  */
128 #define STDC_HEADERS 1
129
130 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
131 /* #undef TIME_WITH_SYS_TIME */
132
133 /* Define if your <sys/time.h> declares struct tm.  */
134 /* #undef TM_IN_SYS_TIME */
135
136 /* Define to `int' if <sys/types.h> doesn't define.  */
137 #define uid_t long
138
139 /* define this if needed to get reentrant functions */
140 /* #undef _REENTRANT */
141
142 /* define this if needed to get threadsafe functions */
143 /* #undef _THREAD_SAFE */
144
145 /* define this if needed to get threadsafe functions */
146 /* #undef _THREADSAFE */
147
148 /* define this if toupper() requires tolower() */
149 #define C_UPPER_LOWER
150
151 /* define this if sys_errlist is not defined in stdio.h or errno.h */
152 /* #undef DECL_SYS_ERRLIST */
153
154 /* define if you have berkeley db */
155 /* #undef HAVE_BERKELEY_DB */
156
157 /* define if you have berkeley db2 */
158 /* #undef HAVE_BERKELEY_DB2 */
159
160 /* define if you have crypt */
161 /* #undef HAVE_CRYPT */
162
163 /* define if you have DSAP */
164 /* #undef HAVE_DSAP */
165
166 /* define if you have GDBM */
167 /* #undef HAVE_GDBM */
168
169 /* define if you have ISODE */
170 /* #undef HAVE_ISODE */
171
172 /* define if you have Kerberos */
173 /* #undef HAVE_KERBEROS */
174
175 /* define if you have LinuxThreads */
176 /* #undef HAVE_LINUX_THREADS */
177
178 /* define if you have Sun LWP (SunOS style) */
179 /* #undef HAVE_LWP */
180
181 /* define if you have -lncurses */
182 /* #undef HAVE_NCURSES */
183
184 /* define if you have NDBM */
185 /* #undef HAVE_NDBM */
186
187 /* define if you have Mach CThreads */
188 /* #undef HAVE_MACH_CTHREADS */
189
190 /* define if you have PP */
191 /* #undef HAVE_PP */
192
193 /* define if you have a preemptive POSIX Threads implementation */
194 /* #undef HAVE_PREEMPTIVE_PTHREADS */
195
196 /* define if you have POSIX Threads */
197 /* #undef HAVE_PTHREADS */
198
199 /* define if your POSIX Threads implementatin is circa Final Draft */
200 /* #undef HAVE_PTHREADS_FINAL */
201
202 /* define if your POSIX Threads implementatin is circa Draft 4 */
203 /* #undef HAVE_PTHREADS_D4 */
204
205 /* define if you have sched_yield() */
206 #ifdef __notdef__
207 /* see second sched_yield define */
208 /* #undef HAVE_SCHED_YIELD */
209 #endif
210
211 /* define if you have setproctitle() */
212 #undef HAVE_SETPROCTITLE
213
214 /* define if you have -lwrap */
215 /* #undef HAVE_TCPD */
216
217 /* define if you have -ltermcap */
218 /* #undef HAVE_TERMCAP */
219
220 /* define if you have Solaris LWP Threads */
221 /* #undef HAVE_THR */
222
223 /* define if you have XTPP */
224 /* #undef HAVE_XTPP */
225
226 /* define this for connectionless LDAP support */
227 /* #undef LDAP_CONNECTIONLESS */
228
229 /* define this to add debugging code */
230 #define LDAP_DEBUG 1
231
232 /* define this to remove -lldap cache support */
233 /* #undef LDAP_NOCACHE */
234
235 /* define this for LDAP process title support */
236 /* #undef LDAP_PROCTITLE */
237
238 /* define this for LDAP User Interface support */
239 /* #undef LDAP_LIBUI */
240
241 /* define this to use DBBTREE w/ LDBM backend */
242 /* #undef LDBM_USE_DBBTREE */
243
244 /* define this to use DBHASH w/ LDBM backend */
245 /* #undef LDBM_USE_DBHASH */
246
247 /* define this if you want no termcap support */
248 #define NO_TERMCAP 1
249
250 /* define this if you want no thread support */
251 #define NO_THREADS 1
252
253 /* define this if the thread package is preemptive */
254 #define PREEMPTIVE_THREADS 1
255
256 /* define this for ACL Group support */
257 #define SLAPD_ACLGROUPS
258
259 /* define this for crypt(3) password support */
260 /* #undef SLAPD_CRYPT */
261
262 /* define this to use SLAPD LDBM backend */
263 /* #undef SLAPD_LDBM */
264
265 /* define this for MD5 password support */
266 #define SLAPD_MD5 1
267
268 /* define this to use SLAPD passwd backend */
269 /* #undef SLAPD_PASSWD */
270
271 /* define this for phonetic support */
272 /* #undef SLAPD_PHONETIC */
273
274 /* define this for Reverse Lookup support */
275 #define SLAPD_RLOOKUPS 1
276
277 /* define this for SHA1 password support */
278 #define SLAPD_SHA1 1
279
280 /* define this to use SLAPD shell backend */
281 /* #undef SLAPD_SHELL */
282
283 /* These are defined in ldap_features.h */
284 /*
285  LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
286  LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
287 */
288
289 /* Define if you have the bcopy function.  */
290 /* #undef HAVE_BCOPY */
291
292 /* Define if you have the flock function.  */
293 /* #undef HAVE_FLOCK */
294
295 /* Define if you have the getdtablesize function.  */
296 /* #undef HAVE_GETDTABLESIZE */
297
298 /* Define if you have the gethostname function.  */
299 #define HAVE_GETHOSTNAME 1
300
301 /* define if you have the getopt function */
302 /* #undef HAVE_GETOPT */
303
304 /* Define if you have the getpwuid function.  */
305 /* #undef HAVE_GETPWUID */
306
307 /* Define if you have the gettimeofday function.  */
308 /* #undef HAVE_GETTIMEOFDAY */
309
310 /* Define if you have the lockf function.  */
311 /* #undef HAVE_LOCKF */
312
313 /* Define if you have the memcpy function.  */
314 #define HAVE_MEMCPY 1
315
316 /* Define if you have the memmove function.  */
317 #define HAVE_MEMMOVE 1
318
319 /* Define if you have the mkstemp function.  */
320 /* #undef HAVE_MKSTEMP */
321
322 /* Define if you have the mktime function.  */
323 #define HAVE_MKTIME 1
324
325 /* Define if you have the pthread_attr_create function.  */
326 /* #undef HAVE_PTHREAD_ATTR_CREATE */
327
328 /* Define if you have the pthread_attr_delete function.  */
329 /* #undef HAVE_PTHREAD_ATTR_DELETE */
330
331 /* Define if you have the pthread_attr_destroy function.  */
332 /* #undef HAVE_PTHREAD_ATTR_DESTROY */
333
334 /* Define if you have the pthread_attr_init function.  */
335 /* #undef HAVE_PTHREAD_ATTR_INIT */
336
337 /* Define if you have the pthread_attr_setdetach_np function.  */
338 /* #undef HAVE_PTHREAD_ATTR_SETDETACH_NP */
339
340 /* Define if you have the pthread_attr_setdetachstate function.  */
341 /* #undef HAVE_PTHREAD_ATTR_SETDETACHSTATE */
342
343 /* Define if you have the pthread_kill function.  */
344 /* #undef HAVE_PTHREAD_KILL */
345
346 /* Define if you have the pthread_setconcurrency function.  */
347 /* #undef HAVE_PTHREAD_SETCONCURRENCY */
348
349 /* Define if you have the pthread_yield function.  */
350 /* #undef HAVE_PTHREAD_YIELD */
351
352 /* Define if you have the res_search function.  */
353 /* #undef HAVE_RES_SEARCH */
354
355 /* Define if you have the sched_yield function.  */
356 /* #undef HAVE_SCHED_YIELD */
357
358 /* Define if you have the select function.  */
359 #define HAVE_SELECT 1
360
361 /* Define if you have the setpwfile function.  */
362 /* #undef HAVE_SETPWFILE */
363
364 /* Define if you have the setsid function.  */
365 /* #undef HAVE_SETSID */
366
367 /* Define if you have the signal function.  */
368 #define HAVE_SIGNAL 1
369
370 /* Define if you have the sigset function.  */
371 /* #undef HAVE_SIGSET */
372
373 /* Define if you have the snprintf function.  */
374 /* #undef HAVE_SNPRINTF */
375
376 /* Define if you have the socket function.  */
377 #define HAVE_SOCKET 1
378
379 /* Define if you have the strdup function.  */
380 #define HAVE_STRDUP 1
381
382 /* Define if you have the strerror function.  */
383 #define HAVE_STRERROR 1
384
385 /* Define if you have the strpbrk function.  */
386 #define HAVE_STRPBRK 1
387
388 /* Define if you have the strrchr function.  */
389 #define HAVE_STRRCHR 1
390
391 /* Define if you have the strsep function.  */
392 /* #undef HAVE_STRSEP */
393
394 /* Define if you have the strstr function.  */
395 #define HAVE_STRSTR 1
396
397 /* Define if you have the strtod function.  */
398 #define HAVE_STRTOD 1
399
400 /* Define if you have the strtok function.  */
401 #define HAVE_STRTOK 1
402
403 /* Define if you have the strtol function.  */
404 #define HAVE_STRTOL 1
405
406 /* Define if you have the strtoul function.  */
407 #define HAVE_STRTOUL 1
408
409 /* Define if you have the sysconf function.  */
410 /* #undef HAVE_SYSCONF */
411
412 /* Define if you have the tempnam function.  */
413 /* #undef HAVE_TEMPNAM */
414
415 /* Define if you have the thr_setconcurrency function.  */
416 /* #undef HAVE_THR_SETCONCURRENCY */
417
418 /* Define if you have the vsnprintf function.  */
419 /* #undef HAVE_VSNPRINTF */
420
421 /* Define if you have the waitpid function.  */
422 #define HAVE_WAITPID 1
423
424 /* Define if you have the <crypt.h> header file.  */
425 /* #undef HAVE_CRYPT_H */
426
427 /* Define if you have the <db.h> header file.  */
428 /* #undef HAVE_DB_H */
429
430 /* Define if you have the <db_185.h> header file.  */
431 /* #undef HAVE_DB_185_H */
432
433 /* Define if you have the <des.h> header file.  */
434 /* #undef HAVE_DES_H */
435
436 /* Define if you have the <dirent.h> header file.  */
437 /* #undef HAVE_DIRENT_H */
438
439 /* Define if you have the <errno.h> header file.  */
440 #define HAVE_ERRNO_H 1
441
442 /* Define if you have the <fcntl.h> header file.  */
443 #define HAVE_FCNTL_H 1
444
445 /* Define if you have the <filio.h> header file.  */
446 /* #undef HAVE_FILIO_H */
447
448 /* Define if you have the <gdbm.h> header file.  */
449 /* #undef HAVE_GDBM_H */
450
451 /* Define if you have the <getopt.h> header file.  */
452 /* #undef HAVE_GETOPT_H */
453
454 /* Define if you have the <kerberosIV/des.h> header file.  */
455 /* #undef HAVE_KERBEROSIV_DES_H */
456
457 /* Define if you have the <kerberosIV/krb.h> header file.  */
458 /* #undef HAVE_KERBEROSIV_KRB_H */
459
460 /* Define if you have the <krb.h> header file.  */
461 /* #undef HAVE_KRB_H */
462
463 /* Define if you have the <libutil.h> header file.  */
464 /* #undef HAVE_LIBUTIL_H */
465
466 /* Define if you have the <limits.h> header file.  */
467 #define HAVE_LIMITS_H 1
468
469 /* Define if you have the <lwp/lwp.h> header file.  */
470 /* #undef HAVE_LWP_LWP_H */
471
472 /* Define if you have the <mach/cthreads.h> header file.  */
473 /* #undef HAVE_MACH_CTHREADS_H */
474
475 /* Define if you have the <malloc.h> header file.  */
476 #define HAVE_MALLOC_H 1
477
478 /* Define if you have the <memory.h> header file.  */
479 /* #define HAVE_MEMORY_H */
480
481 /* Define if you have the <ncurses.h> header file.  */
482 /* #undef HAVE_NCURSES_H */
483
484 /* Define if you have the <ndbm.h> header file.  */
485 /* #undef HAVE_NDBM_H */
486
487 /* Define if you have the <ndir.h> header file.  */
488 /* #undef HAVE_NDIR_H */
489
490 /* Define if you have the <pthread.h> header file.  */
491 /* #undef HAVE_PTHREAD_H */
492
493 /* Define if you have the <pwd.h> header file.  */
494 /* #undef HAVE_PWD_H */
495
496 /* Define if you have the <regex.h> header file.  */
497 /* #undef HAVE_REGEX_H */
498
499 /* Define if you have the <sched.h> header file.  */
500 /* #undef HAVE_SCHED_H */
501
502 /* Define if you have the <sgtty.h> header file.  */
503 /* #undef HAVE_SGTTY_H */
504
505 /* Define if you have the <stdarg.h> header file.  */
506 #define HAVE_STDARG_H 1
507
508 /* Define if you have the <stddef.h> header file.  */
509 #define HAVE_STDDEF_H 1
510
511 /* Define if you have the <string.h> header file.  */
512 #define HAVE_STRING_H 1
513
514 /* Define if you have the <strings.h> header file.  */
515 /* #undef HAVE_STRINGS_H */
516
517 /* Define if you have the <synch.h> header file.  */
518 /* #undef HAVE_SYNCH_H */
519
520 /* Define if you have the <sys/dir.h> header file.  */
521 /* #undef HAVE_SYS_DIR_H */
522
523 /* Define if you have the <sys/errno.h> header file.  */
524 /* #undef HAVE_SYS_ERRNO_H */
525
526 /* Define if you have the <sys/file.h> header file.  */
527 /* #undef HAVE_SYS_FILE_H */
528
529 /* Define if you have the <sys/filio.h> header file.  */
530 /* #undef HAVE_SYS_FILIO_H */
531
532 /* Define if you have the <sys/ioctl.h> header file.  */
533 /* #undef HAVE_SYS_IOCTL_H */
534
535 /* Define if you have the <sys/ndir.h> header file.  */
536 /* #undef HAVE_SYS_NDIR_H */
537
538 /* Define if you have the <sys/param.h> header file.  */
539 /* #undef HAVE_SYS_PARAM_H */
540
541 /* Define if you have the <sys/resource.h> header file.  */
542 /* #undef HAVE_SYS_RESOURCE_H */
543
544 /* Define if you have the <sys/socket.h> header file.  */
545 /* #undef HAVE_SYS_SOCKET_H */
546
547 /* Define if you have the <sys/syslog.h> header file.  */
548 /* #undef HAVE_SYS_SYSLOG_H */
549
550 /* Define if you have the <sys/time.h> header file.  */
551 /* #undef HAVE_SYS_TIME_H */
552
553 /* Define if you have the <sys/types.h> header file.  */
554 #define HAVE_SYS_TYPES_H 1
555
556 /* Define if you have the <syslog.h> header file.  */
557 /* #undef HAVE_SYSLOG_H */
558
559 /* Define if you have the <termcap.h> header file.  */
560 /* #undef HAVE_TERMCAP_H */
561
562 /* Define if you have the <termios.h> header file.  */
563 /* #undef HAVE_TERMIOS_H */
564
565 /* Define if you have the <thread.h> header file.  */
566 /* #undef HAVE_THREAD_H */
567
568 /* Define if you have the <unistd.h> header file.  */
569 /* #undef HAVE_UNISTD_H */
570
571 /* Define if you have the V3 library (-lV3).  */
572 /* #undef HAVE_LIBV3 */
573
574 /* Define if you have the gen library (-lgen).  */
575 /* #undef HAVE_LIBGEN */
576
577 /* Define if you have the inet library (-linet).  */
578 /* #undef HAVE_LIBINET */
579
580 /* Define if you have the net library (-lnet).  */
581 /* #undef HAVE_LIBNET */
582
583 /* Define if you have the nsl library (-lnsl).  */
584 /* #undef HAVE_LIBNSL */
585
586 /* Define if you have the nsl_s library (-lnsl_s).  */
587 /* #undef HAVE_LIBNSL_S */
588
589 /* Define if you have the resolv library (-lresolv).  */
590 /* #undef HAVE_LIBRESOLV */
591
592 /* Define if you have the socket library (-lsocket).  */
593 /* #undef HAVE_LIBSOCKET */
594
595 #ifdef HAVE_STDDEF_H
596 #       include <stddef.h>
597 #endif
598
599 #include "ldap_cdefs.h"
600 #include "ldap_features.h"
601
602 #endif /* _LDAP_PORTABLE_H */