]> git.sur5r.net Git - openldap/blob - include/portable.h.nt
Allow using real db1 on glibc 2.1 instead of the db1 compatiblity in db2.
[openldap] / include / portable.h.nt
1 /* include/portable.h.nt -- manually updated of MS NT (MS VC5) */
2 /* synced with portable.h.in 1.2.2.6 */
3 /*
4  * Copyright 1998,1999 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
13 #ifndef _LDAP_PORTABLE_H
14 #define _LDAP_PORTABLE_H
15
16 /* end of preamble */
17
18 /* --------------------------------------------------- */
19 /* begin of MSVC5 specific entries */
20
21 /* MSVC5 doesn't define _STDC_ but supports _STDC_ features */
22 #define __NEED_PROTOTYPES 1
23 #define HAVE_STDARG 1
24
25 /* we installed Henry Spencer's REGEX */
26 #define HAVE_REGEX_H 1
27
28 /* win32 specific stuff */
29 #define strcasecmp      stricmp
30 #define strncasecmp     strnicmp
31 #define strdup          _strdup
32 #define vsnprintf       _vsnprintf
33 #define vsprintf        _vsprintf
34
35 /* define type for caddr_t */
36 typedef char * caddr_t;
37
38 /* we have spawnlp instead of fork/execlp */
39 #define HAVE_SPAWNLP 1
40
41 /* we have winsock2 */
42 #define HAVE_WINSOCK2 1
43
44 /* we have winsock */
45 #define HAVE_WINSOCK 1
46
47 /* we have <conio.h> */
48 #define HAVE_CONIO_H 1
49
50 /* we have <io.h> */
51 #define HAVE_IO_H 1
52
53 /* we have <process.h> */
54 #define HAVE_PROCESS_H 1
55
56 /* end of MSVC5 specific entries */
57 /* --------------------------------------------------- */
58
59 /* Define if on AIX 3.
60    System headers sometimes define this.
61    We just want to avoid a redefinition error message.  */
62 #ifndef _ALL_SOURCE
63 /* #undef _ALL_SOURCE */
64 #endif
65
66 /* Define to empty if the keyword does not work.  */
67 /* #undef const */
68
69 /* Define to the type of elements in the array set by `getgroups'.
70    Usually this is either `int' or `gid_t'.  */
71 /* #undef GETGROUPS_T */
72
73 /* Define to `int' if <sys/types.h> doesn't define.  */
74 #define gid_t long
75
76 /* Define if you don't have vprintf but do have _doprnt.  */
77 /* #undef HAVE_DOPRNT */
78
79 /* Define if your struct stat has st_blksize.  */
80 /* #undef HAVE_ST_BLKSIZE */
81
82 /* Define if you have the strftime function.  */
83 #define HAVE_STRFTIME 1
84
85 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
86 /* #undef HAVE_SYS_WAIT_H */
87
88 /* Define if you have the vprintf function.  */
89 #define HAVE_VPRINTF 1
90
91 /* Define if on MINIX.  */
92 /* #undef _MINIX */
93
94 /* Define to `int' if <sys/types.h> doesn't define.  */
95 #define mode_t int
96
97 /* Define to `long' if <sys/types.h> doesn't define.  */
98 /* #undef off_t */
99
100 /* Define to `int' if <sys/types.h> doesn't define.  */
101 #define pid_t int
102
103 /* Define if the system does not provide POSIX.1 features except
104    with this defined.  */
105 /* #undef _POSIX_1_SOURCE */
106
107 /* Define if you need to in order for stat and other things to work.  */
108 /* #undef _POSIX_SOURCE */
109
110 /* Define as the return type of signal handlers (int or void).  */
111 #define RETSIGTYPE void
112
113 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
114 /* #undef size_t */
115
116 /* Define if you have the ANSI C header files.  */
117 #define STDC_HEADERS 1
118
119 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
120 /* #undef TIME_WITH_SYS_TIME */
121
122 /* Define if your <sys/time.h> declares struct tm.  */
123 /* #undef TM_IN_SYS_TIME */
124
125 /* Define to `int' if <sys/types.h> doesn't define.  */
126 #define uid_t long
127
128 /* Define if your processor stores words with the most significant
129    byte first (like Motorola and SPARC, unlike Intel and VAX).  */
130 /* #undef WORDS_BIGENDIAN */
131
132 /* define this if needed to get reentrant functions */
133 #ifndef REENTRANT
134 /* #undef REENTRANT */
135 #endif
136 #ifndef _REENTRANT
137 /* #undef _REENTRANT */
138 #endif
139
140 /* define this if needed to get threadsafe functions */
141 #ifndef THREADSAFE
142 /* #undef THREADSAFE */
143 #endif
144 #ifndef _THREADSAFE
145 /* #undef _THREADSAFE */
146 #endif
147 #ifndef THREAD_SAFE
148 /* #undef THREAD_SAFE */
149 #endif
150 #ifndef _THREAD_SAFE
151 /* #undef _THREAD_SAFE */
152 #endif
153
154 /* define this if toupper() requires tolower() */
155 #define C_UPPER_LOWER 1
156
157 /* define this to the number of arguments ctime_r() expects */
158 /* #undef CTIME_R_NARGS */
159
160 /* define this if sys_errlist is not defined in stdio.h or errno.h */
161 /* #undef DECL_SYS_ERRLIST */
162
163 /* define if you have berkeley db */
164 /* #undef HAVE_BERKELEY_DB */
165
166 /* define if you have berkeley db2 */
167 /* #undef HAVE_BERKELEY_DB2 */
168
169 /* define if you have crypt */
170 /* #undef HAVE_CRYPT */
171
172 /* define if you have GDBM */
173 /* #undef HAVE_GDBM */
174
175 /* define if you have NDBM */
176 /* #undef HAVE_NDBM */
177
178 /* define if you have res_search() */
179 #ifdef __notdef__
180 /* see second res_search define */
181 /* #undef HAVE_RES_SEARCH */
182 #endif
183
184 /* define if you have sched_yield() */
185 #ifdef __notdef__
186 /* see second sched_yield define */
187 /* #undef HAVE_SCHED_YIELD */
188 #endif
189
190 /* define if you have setproctitle() */
191 /* #undef HAVE_SETPROCTITLE */
192
193 /* define this for connectionless LDAP support */
194 /* #undef LDAP_CONNECTIONLESS */
195
196 /* define this to add debugging code */
197 #define LDAP_DEBUG 1
198
199 /* define this for LDAP DNS support */
200 /* #undef LDAP_DNS */
201
202 /* define this to remove -lldap cache support */
203 /* #undef LDAP_NOCACHE */
204
205 /* define this for LDAP process title support */
206 /* #undef LDAP_PROCTITLE */
207
208 /* define this for LDAP referrals support */
209 #define LDAP_REFERRALS 1
210
211 /* define this for LDAP User Interface support */
212 /* #undef LDAP_LIBUI */
213
214 /* define this to add syslog code */
215 /* #undef LDAP_SYSLOG */
216
217 /* define this to use DBBTREE w/ LDBM backend */
218 /* #undef LDBM_USE_DBBTREE */
219
220 /* define this to use DBHASH w/ LDBM backend */
221 /* #undef LDBM_USE_DBHASH */
222
223 /* define this for ACL Group support */
224 /* #undef SLAPD_ACLGROUPS */
225
226 /* define this for ClearText password support */
227 /* #undef SLAPD_CLEARTEXT */
228
229 /* define this for crypt(3) password support */
230 /* #undef SLAPD_CRYPT */
231
232 /* define this to use SLAPD LDBM backend */
233 /* #undef SLAPD_LDBM */
234
235 /* define this to use SLAPD passwd backend */
236 /* #undef SLAPD_PASSWD */
237
238 /* define this for phonetic support */
239 /* #undef SLAPD_PHONETIC */
240
241 /* define this for Reverse Lookup support */
242 /* #undef SLAPD_RLOOKUPS */
243
244 /* define this to use SLAPD shell backend */
245 /* #undef SLAPD_SHELL */
246
247 /* The number of bytes in a int.  */ 
248 #define SIZEOF_INT 4
249
250 /* The number of bytes in a long.  */ 
251 #define SIZEOF_LONG 4
252   
253 /* The number of bytes in a short.  */
254 #define SIZEOF_SHORT 2
255
256 /* Define if you have the bcopy function.  */
257 /* #undef HAVE_BCOPY */
258
259 /* Define if you have the ctime_r function.  */
260 /* #undef HAVE_CTIME_R */
261
262 /* Define if you have the flock function.  */
263 /* #undef HAVE_FLOCK */
264
265 /* Define if you have the getdtablesize function.  */
266 /* #undef HAVE_GETDTABLESIZE */
267
268 /* Define if you have the gethostbyaddr_r function.  */
269 /* #undef HAVE_GETHOSTBYADDR_R */
270
271 /* Define if you have the gethostbyname_r function.  */
272 /* #undef HAVE_GETHOSTBYNAME_R */
273
274 /* Define if you have the gethostname function.  */
275 #define HAVE_GETHOSTNAME 1
276
277 /* define if you have the getopt function */
278 /* #undef HAVE_GETOPT */
279
280 /* define if you have the getpwuid function */
281 /* #undef HAVE_GETPWUID */
282
283 /* Define if you have the gettimeofday function.  */
284 /* #undef HAVE_GETTIMEOFDAY */
285
286 /* Define if you have the lockf function.  */
287 /* #undef HAVE_LOCKF */
288
289 /* Define if you have the memcpy function.  */
290 #define HAVE_MEMCPY 1
291
292 /* Define if you have the memmove function.  */
293 #define HAVE_MEMMOVE 1
294
295 /* Define if you have the mkstemp function.  */
296 /* #undef HAVE_MKSTEMP */
297
298 /* Define if you have the pthread_getconcurrency function.  */
299 /* #undef HAVE_PTHREAD_GETCONCURRENCY */
300
301 /* Define if you have the pthread_kill function.  */
302 /* #undef HAVE_PTHREAD_KILL */
303
304 /* Define if you have the pthread_setconcurrency function.  */
305 /* #undef HAVE_PTHREAD_SETCONCURRENCY */
306
307 /* Define if you have the pthread_yield function.  */
308 /* #undef HAVE_PTHREAD_YIELD */
309
310 /* Define if you have the res_search function.  */
311 /* #undef HAVE_RES_SEARCH */
312
313 /* Define if you have the sched_yield function.  */
314 /* #undef HAVE_SCHED_YIELD */
315
316 /* Define if you have the select function.  */
317 #define HAVE_SELECT 1
318
319 /* Define if you have the setpwfile function.  */
320 /* #undef HAVE_SETPWFILE */
321
322 /* Define if you have the setsid function.  */
323 /* #undef HAVE_SETSID */
324
325 /* Define if you have the signal function.  */
326 #define HAVE_SIGNAL 1
327
328 /* Define if you have the sigset function.  */
329 /* #undef HAVE_SIGSET */
330
331 /* Define if you have the snprintf function.  */
332 /* #undef HAVE_SNPRINTF */
333
334 /* Define if you have the socket function.  */
335 #define HAVE_SOCKET 1
336
337 /* Define if you have the strdup function.  */
338 #define HAVE_STRDUP 1
339
340 /* Define if you have the strerror function.  */
341 #define HAVE_STRERROR 1
342
343 /* Define if you have the strpbrk function.  */
344 #define HAVE_STRPBRK 1
345
346 /* Define if you have the strrchr function.  */
347 #define HAVE_STRRCHR 1
348
349 /* Define if you have the strsep function.  */
350 /* #undef HAVE_STRSEP */
351
352 /* Define if you have the strspn function.  */
353 #define HAVE_STRSPN 1
354
355 /* Define if you have the strstr function.  */
356 #define HAVE_STRSTR 1
357
358 /* Define if you have the strtok function.  */
359 #define HAVE_STRTOK 1
360
361 /* Define if you have the strtok_r function.  */
362 /* #undef HAVE_STRTOK_R */
363
364 /* Define if you have the strtol function.  */
365 #define HAVE_STRTOL 1
366
367 /* Define if you have the strtoul function.  */
368 #define HAVE_STRTOUL 1
369
370 /* Define if you have the sysconf function.  */
371 /* #undef HAVE_SYSCONF */
372
373 /* Define if you have the tempnam function.  */
374 /* #undef HAVE_TEMPNAM */
375
376 /* Define if you have the thr_getconcurrency function.  */
377 /* #undef HAVE_THR_GETCONCURRENCY */
378
379 /* Define if you have the thr_setconcurrency function.  */
380 /* #undef HAVE_THR_SETCONCURRENCY */
381
382 /* Define if you have the thr_yield function.  */
383 /* #undef HAVE_THR_YIELD */
384
385 /* Define if you have the vsnprintf function.  */
386 #define HAVE_VSNPRINTF 1
387
388 /* Define if you have the vsprintf function.  */
389 #define HAVE_VSPRINTF 1
390
391 /* Define if you have the waitpid function.  */
392 #define HAVE_WAITPID 1
393
394 /* Define if you have the <arpa/nameser.h> header file.  */
395 /* #undef HAVE_ARPA_NAMESER_H */
396
397 /* Define if you have the <crypt.h> header file.  */
398 /* #undef HAVE_CRYPT_H */
399
400 /* Define if you have the <db.h> header file.  */
401 /* #undef HAVE_DB_H */
402
403 /* Define if you have the <db_185.h> header file.  */
404 /* #undef HAVE_DB_185_H */
405
406 /* Define if you have the <des.h> header file.  */
407 /* #undef HAVE_DES_H */
408
409 /* Define if you have the <dirent.h> header file.  */
410 /* #undef HAVE_DIRENT_H */
411
412 /* Define if you have the <dmalloc.h> header file.  */
413 /* #undef HAVE_DMALLOC_H */
414
415 /* Define if you have the <errno.h> header file.  */
416 #define HAVE_ERRNO_H 1
417
418 /* Define if you have the <fcntl.h> header file.  */
419 #define HAVE_FCNTL_H 1
420
421 /* Define if you have the <filio.h> header file.  */
422 /* #undef HAVE_FILIO_H */
423
424 /* Define if you have the <gdbm.h> header file.  */
425 /* #undef HAVE_GDBM_H */
426
427 /* Define if you have the <getopt.h> header file.  */
428 /* #undef HAVE_GETOPT_H */
429
430 /* Define if you have the <kerberosIV/des.h> header file.  */
431 /* #undef HAVE_KERBEROSIV_DES_H */
432
433 /* Define if you have the <kerberosIV/krb.h> header file.  */
434 /* #undef HAVE_KERBEROSIV_KRB_H */
435
436 /* Define if you have the <krb.h> header file.  */
437 /* #undef HAVE_KRB_H */
438
439 /* Define if you have the <libutil.h> header file.  */
440 /* #undef HAVE_LIBUTIL_H */
441
442 /* Define if you have the <limits.h> header file.  */
443 #define HAVE_LIMITS_H 1
444
445 /* Define if you have the <lwp/lwp.h> header file.  */
446 /* #undef HAVE_LWP_LWP_H */
447
448 /* Define if you have the <mach/cthreads.h> header file.  */
449 /* #undef HAVE_MACH_CTHREADS_H */
450
451 /* Define if you have the <malloc.h> header file.  */
452 #define HAVE_MALLOC_H 1
453
454 /* Define if you have the <memory.h> header file.  */
455 /* #undef HAVE_MEMORY_H */
456
457 /* Define if you have the <ncurses.h> header file.  */
458 /* #undef HAVE_NCURSES_H */
459
460 /* Define if you have the <ndbm.h> header file.  */
461 /* #undef HAVE_NDBM_H */
462
463 /* Define if you have the <ndir.h> header file.  */
464 /* #undef HAVE_NDIR_H */
465
466 /* Define if you have the <psap.h> header file.  */
467 /* #undef HAVE_PSAP_H */
468
469 /* Define if you have the <pthread.h> header file.  */
470 /* #undef HAVE_PTHREAD_H */
471
472 /* Define if you have the <pwd.h> header file.  */
473 /* #undef HAVE_PWD_H */
474
475 /* Define if you have the <regex.h> header file.  */
476 /* #undef HAVE_REGEX_H */
477
478 /* Define if you have the <resolv.h> header file.  */
479 /* #undef HAVE_RESOLV_H */
480
481 /* Define if you have the <sched.h> header file.  */
482 /* #undef HAVE_SCHED_H */
483
484 /* Define if you have the <sgtty.h> header file.  */
485 /* #undef HAVE_SGTTY_H */
486
487 /* Define if you have the <stdarg.h> header file.  */
488 #define HAVE_STDARG_H 1
489
490 /* Define if you have the <stddef.h> header file.  */
491 #define HAVE_STDDEF_H 1
492
493 /* Define if you have the <string.h> header file.  */
494 #define HAVE_STRING_H 1
495
496 /* Define if you have the <strings.h> header file.  */
497 /* #undef HAVE_STRINGS_H */
498
499 /* Define if you have the <synch.h> header file.  */
500 /* #undef HAVE_SYNCH_H */
501
502 /* Define if you have the <sys/dir.h> header file.  */
503 /* #undef HAVE_SYS_DIR_H */
504
505 /* Define if you have the <sys/errno.h> header file.  */
506 /* #undef HAVE_SYS_ERRNO_H */
507
508 /* Define if you have the <sys/file.h> header file.  */
509 /* #undef HAVE_SYS_FILE_H */
510
511 /* Define if you have the <sys/filio.h> header file.  */
512 /* #undef HAVE_SYS_FILIO_H */
513
514 /* Define if you have the <sys/ioctl.h> header file.  */
515 /* #undef HAVE_SYS_IOCTL_H */
516
517 /* Define if you have the <sys/ndir.h> header file.  */
518 /* #undef HAVE_SYS_NDIR_H */
519
520 /* Define if you have the <sys/param.h> header file.  */
521 /* #undef HAVE_SYS_PARAM_H */
522
523 /* Define if you have the <sys/resource.h> header file.  */
524 /* #undef HAVE_SYS_RESOURCE_H */
525
526 /* Define if you have the <sys/socket.h> header file.  */
527 /* #undef HAVE_SYS_SOCKET_H */
528
529 /* Define if you have the <sys/syslog.h> header file.  */
530 /* #undef HAVE_SYS_SYSLOG_H */
531
532 /* Define if you have the <sys/time.h> header file.  */
533 /* #undef HAVE_SYS_TIME_H */
534
535 /* Define if you have the <sys/types.h> header file.  */
536 #define HAVE_SYS_TYPES_H 1
537
538 /* Define if you have the <sysexits.h> header file.  */
539 /* #undef HAVE_SYSEXITS_H */
540
541 /* Define if you have the <syslog.h> header file.  */
542 /* #undef HAVE_SYSLOG_H */
543
544 /* Define if you have the <tcpd.h> header file.  */
545 /* #undef HAVE_TCPD_H */
546
547 /* Define if you have the <termcap.h> header file.  */
548 /* #undef HAVE_TERMCAP_H */
549
550 /* Define if you have the <termios.h> header file.  */
551 /* #undef HAVE_TERMIOS_H */
552
553 /* Define if you have the <thread.h> header file.  */
554 /* #undef HAVE_THREAD_H */
555
556 /* Define if you have the <unistd.h> header file.  */
557 /* #undef HAVE_UNISTD_H */
558
559 /* Define if you have the V3 library (-lV3).  */
560 /* #undef HAVE_LIBV3 */
561
562 /* Define if you have the bind library (-lbind).  */
563 /* #undef HAVE_LIBBIND */
564
565 /* Define if you have the dmalloc library (-ldmalloc).  */
566 /* #undef HAVE_LIBDMALLOC */
567
568 /* Define if you have the gen library (-lgen).  */
569 /* #undef HAVE_LIBGEN */
570
571 /* Define if you have the inet library (-linet).  */
572 /* #undef HAVE_LIBINET */
573
574 /* Define if you have the net library (-lnet).  */
575 /* #undef HAVE_LIBNET */
576
577 /* Define if you have the nsl library (-lnsl).  */
578 /* #undef HAVE_LIBNSL */
579
580 /* Define if you have the nsl_s library (-lnsl_s).  */
581 /* #undef HAVE_LIBNSL_S */
582
583 /* Define if you have the resolv library (-lresolv).  */
584 /* #undef HAVE_LIBRESOLV */
585
586 /* Define if you have the socket library (-lsocket).  */
587 /* #undef HAVE_LIBSOCKET */
588
589 /* define if you have -lxttp */
590 /* #undef HAVE_XTPP */
591
592 /* define if you have -ldsap */
593 /* #undef HAVE_DSAP */
594
595 /* define if you have -lisode */
596 /* #undef HAVE_ISODE */
597
598 /* define if you have -lpp */
599 /* #undef HAVE_PP */
600
601 /* define if you have Kerberos des_debug */
602 /* #undef HAVE_DES_DEBUG */
603
604 /* define if you have Kerberos */
605 /* #undef HAVE_KERBEROS */
606
607 /* define if pthreads API compatible with final spec */
608 /* #undef HAVE_PTHREADS_FINAL */
609
610 /* define if pthreads API compatible with draft4 spec */
611 /* #undef HAVE_PTHREADS_D4 */
612
613 /* define if you have LinuxThreads */
614 /* #undef HAVE_LINUX_THREADS */
615
616 /* define if you have POSIX Threads */
617 /* #undef HAVE_PTHREADS */
618
619 /* define if you have pthread_detach function */
620 /* #undef HAVE_PTHREAD_DETACH */
621
622 /* define if you have Mach Cthreads */
623 /* #undef HAVE_MACH_CTHREADS */
624
625 /* if you have Solaris LWP (thr) package */
626 /* #undef HAVE_THR */
627
628 /* if you have SunOS LWP package */
629 /* #undef HAVE_LWP */
630
631 /* define if select implicitly yields */
632 #define HAVE_YIELDING_SELECT 1
633
634 /* define if you have (or want) no threads */
635 /* #undef NO_THREADS */
636
637 /* define if you have -lwrap */
638 /* #undef HAVE_TCPD */
639
640 /* define if you have -ltermcap */
641 /* #undef HAVE_TERMCAP */
642
643 /* define if you have -lncurses */
644 /* #undef HAVE_NCURSES */
645
646 /* define if you have no termcap support */
647 #define NO_TERMCAP 1
648
649 /* Define if TIOCGWINSZ requires sys/ioctl.h */
650 /* #undef GWINSZ_IN_SYS_IOCTL */
651
652 /* define if you have POSIX termios */
653 /* #undef HAVE_POSIX_TERMIOS */
654
655 /* Define if system has ptrdiff_t type */
656 #define HAVE_PTRDIFF_T 1
657
658 /* define if cross compiling */
659 /* #undef CROSS_COMPILING */
660
661 /* begin of postamble */
662 #ifdef HAVE_STDDEF_H
663 #       include <stddef.h>
664 #endif
665
666 #include "ldap_cdefs.h"
667
668 #endif /* _LDAP_PORTABLE_H */