1 /* include/portable.h.nt -- manually updated of MS NT (MS VC5) */
2 /* synced with portable.h.in 1.24 */
4 * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
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.
13 #ifndef _LDAP_PORTABLE_H
14 #define _LDAP_PORTABLE_H
18 /* --------------------------------------------------- */
19 /* begin of MSVC5 specific entries */
21 #define OPENLDAP_PACKAGE "OpenLDAP"
22 #define OPENLDAP_VERSION "-devel"
24 #define LDAP_DIRSEP "\\"
26 /* don't suck in all of the win32 api */
27 #define WIN32_LEAN_AND_MEAN
30 /* WindowsNT specific features */
31 #define HAVE_NT_SERVICE_MANAGER 1
32 #define HAVE_NT_EVENT_LOG 1
35 /* Windows95 specific features */
38 #if defined( _DEBUG ) && !defined( LDAP_DEBUG )
39 /* #define LDAP_MEMORY_DEBUG 1 */
43 /* MSVC5 doesn't define _STDC_ but supports _STDC_ features */
44 #define __NEED_PROTOTYPES 1
47 /* we installed Henry Spencer's REGEX */
48 #define HAVE_REGEX_H 1
50 /* win32 specific stuff */
53 #define strcasecmp stricmp
54 #define strncasecmp strnicmp
55 #define strdup _strdup
57 #define snprintf _snprintf
58 #define vsnprintf _vsnprintf
59 /* #define vsprintf _vsprintf */
61 /* define type for caddr_t */
62 typedef char * caddr_t;
64 #define ssize_t signed int
67 #define openlog( a, b )
70 #define FD_SETSIZE 1024
72 /* we have NT threads */
74 #define HAVE_NT_THREADS 1
79 /* we have spawnlp instead of fork/execlp */
80 #define HAVE_SPAWNLP 1
82 /* we have winsock2 */
83 #define HAVE_WINSOCK2 1
86 #define HAVE_WINSOCK 1
88 /* we have <conio.h> */
89 #define HAVE_CONIO_H 1
91 /* we have <direct.h> */
92 #define HAVE_DIRECT_H 1
97 /* we have <process.h> */
98 #define HAVE_PROCESS_H 1
100 #define LDAP_SIGUSR1 SIGILL
101 #define LDAP_SIGUSR2 SIGTERM
103 #define MAXPATHLEN _MAX_PATH
105 /* end of MSVC5 specific entries */
106 /* --------------------------------------------------- */
108 /* Define if on AIX 3.
109 System headers sometimes define this.
110 We just want to avoid a redefinition error message. */
112 /* #undef _ALL_SOURCE */
115 /* Define to empty if the keyword does not work. */
118 /* Define to the type of elements in the array set by `getgroups'.
119 Usually this is either `int' or `gid_t'. */
120 /* #undef GETGROUPS_T */
122 /* Define to `int' if <sys/types.h> doesn't define. */
125 /* Define if you don't have vprintf but do have _doprnt. */
126 /* #undef HAVE_DOPRNT */
128 /* Define if your struct stat has st_blksize. */
129 /* #undef HAVE_ST_BLKSIZE */
131 /* Define if you have the strftime function. */
132 #define HAVE_STRFTIME 1
134 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
135 /* #undef HAVE_SYS_WAIT_H */
137 /* Define if you have the vprintf function. */
138 #define HAVE_VPRINTF 1
140 /* Define if on MINIX. */
143 /* Define to `int' if <sys/types.h> doesn't define. */
146 /* Define to `long' if <sys/types.h> doesn't define. */
149 /* Define to `int' if <sys/types.h> doesn't define. */
152 /* Define if the system does not provide POSIX.1 features except
153 with this defined. */
154 /* #undef _POSIX_1_SOURCE */
156 /* Define if you need to in order for stat and other things to work. */
157 /* #undef _POSIX_SOURCE */
159 /* Define as the return type of signal handlers (int or void). */
160 #define RETSIGTYPE void
162 /* Define to `unsigned' if <sys/types.h> doesn't define. */
165 /* Define if you have the ANSI C header files. */
166 #define STDC_HEADERS 1
168 /* Define if you can safely include both <sys/time.h> and <time.h>. */
169 /* #undef TIME_WITH_SYS_TIME */
171 /* Define if your <sys/time.h> declares struct tm. */
172 /* #undef TM_IN_SYS_TIME */
174 /* Define to `int' if <sys/types.h> doesn't define. */
177 /* Define if your processor stores words with the most significant
178 byte first (like Motorola and SPARC, unlike Intel and VAX). */
179 /* #undef WORDS_BIGENDIAN */
181 /* define this if needed to get reentrant functions */
183 /* #undef REENTRANT */
186 /* #undef _REENTRANT */
189 /* define this if needed to get threadsafe functions */
191 /* #undef THREADSAFE */
194 /* #undef _THREADSAFE */
197 /* #undef THREAD_SAFE */
200 /* #undef _THREAD_SAFE */
203 /* define this if toupper() requires tolower() */
204 #define C_UPPER_LOWER 1
206 /* define this to the number of arguments ctime_r() expects */
207 /* #undef CTIME_R_NARGS */
209 /* define this if sys_errlist is not defined in stdio.h or errno.h */
210 /* #undef DECL_SYS_ERRLIST */
212 /* define if you have berkeley db */
213 /* #undef HAVE_BERKELEY_DB */
215 /* define if you have berkeley db2 */
216 #define HAVE_BERKELEY_DB2 1
218 /* define if you have crypt */
219 /* #undef HAVE_CRYPT */
221 /* define if you have GDBM */
222 /* #undef HAVE_GDBM */
224 /* define if you have NDBM */
225 /* #undef HAVE_NDBM */
227 /* define if you have res_search() */
229 /* see second res_search define */
230 /* #undef HAVE_RES_SEARCH */
233 /* define if you have sched_yield() */
235 /* see second sched_yield define */
236 /* #undef HAVE_SCHED_YIELD */
239 /* define if you have setproctitle() */
240 /* #undef HAVE_SETPROCTITLE */
242 /* define this for connectionless LDAP support */
243 /* #undef LDAP_CONNECTIONLESS */
245 /* define this to add debugging code */
246 /* #undef LDAP_DEBUG */
248 /* define this to remove -lldap cache support */
249 /* #undef LDAP_NOCACHE */
251 /* define this for LDAP process title support */
252 /* #undef LDAP_PROCTITLE */
254 /* define this for LDAP User Interface support */
255 /* #undef LDAP_LIBUI */
257 /* define this to add syslog code */
258 /* #undef LDAP_SYSLOG */
260 /* define this to use DBBTREE w/ LDBM backend */
261 #define LDBM_USE_DBBTREE 1
263 /* define this to use DBHASH w/ LDBM backend */
264 /* #undef LDBM_USE_DBHASH */
266 /* define this for ACL Group support */
267 #define SLAPD_ACLGROUPS 1
269 /* define this to use SLAPD Berkeley DB2 backend */
270 /* #define SLAPD_BDB2 1 */
272 /* define this for ClearText password support */
273 #define SLAPD_CLEARTEXT 1
275 /* define this for crypt(3) password support */
276 /* #undef SLAPD_CRYPT */
278 /* define this to use SLAPD LDAP backend */
279 /* #undef SLAPD_LDAP */
281 /* define this to use SLAPD LDBM backend */
284 /* define this to use SLAPD passwd backend */
285 /* #undef SLAPD_PASSWD */
287 /* define this to use SLAPD perl backend */
288 /* #undef SLAPD_PERL */
290 /* define this for phonetic support */
291 /* #undef SLAPD_PHONETIC */
293 /* define this for Reverse Lookup support */
294 /* #undef SLAPD_RLOOKUPS */
296 /* define this to use SLAPD shell backend */
297 /* #undef SLAPD_SHELL */
299 /* define this to be empty if your compiler doesn't support volatile */
300 /* #undef volatile */
302 /* define this if sig_atomic_t isn't defined in signal.h */
303 /* #undef sig_atomic_t */
305 /* define this if socklen_t isn't defined in sys/types.h or sys/socket.h */
306 #define socklen_t int
308 /* These are defined in ldap_features.h */
310 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
311 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
312 LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
313 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
316 /* The number of bytes in a int. */
319 /* The number of bytes in a long. */
320 #define SIZEOF_LONG 4
322 /* The number of bytes in a short. */
323 #define SIZEOF_SHORT 2
325 /* Define if you have the bcopy function. */
326 /* #undef HAVE_BCOPY */
328 /* Define if you have the ctime_r function. */
329 /* #undef HAVE_CTIME_R */
331 /* Define if you have the flock function. */
332 /* #undef HAVE_FLOCK */
334 /* Define if you have the getdtablesize function. */
335 /* #undef HAVE_GETDTABLESIZE */
337 /* Define if you have the gethostbyaddr_r function. */
338 /* #undef HAVE_GETHOSTBYADDR_R */
340 /* Define if you have the gethostbyname_r function. */
341 /* #undef HAVE_GETHOSTBYNAME_R */
343 /* Define if you have the gethostname function. */
344 #define HAVE_GETHOSTNAME 1
346 /* define if you have the getopt function */
347 /* #undef HAVE_GETOPT */
349 /* Define if you have the getpwuid function. */
350 /* #undef HAVE_GETPWUID */
352 /* Define if you have the gettimeofday function. */
353 /* #undef HAVE_GETTIMEOFDAY */
355 /* Define if you have the lockf function. */
356 /* #undef HAVE_LOCKF */
358 /* Define if you have the memcpy function. */
359 #define HAVE_MEMCPY 1
361 /* Define if you have the memmove function. */
362 #define HAVE_MEMMOVE 1
364 /* Define if you have the mkstemp function. */
365 /* #undef HAVE_MKSTEMP */
367 /* Define if you have the pthread_getconcurrency function. */
368 /* #undef HAVE_PTHREAD_GETCONCURRENCY */
370 /* Define if you have the pthread_kill function. */
371 /* #undef HAVE_PTHREAD_KILL */
373 /* Define if you have the pthread_setconcurrency function. */
374 /* #undef HAVE_PTHREAD_SETCONCURRENCY */
376 /* Define if you have the pthread_yield function. */
377 /* #undef HAVE_PTHREAD_YIELD */
379 /* Define if you have the res_search function. */
380 /* #undef HAVE_RES_SEARCH */
382 /* Define if you have the sched_yield function. */
383 /* #undef HAVE_SCHED_YIELD */
385 /* Define if you have the select function. */
386 #define HAVE_SELECT 1
388 /* Define if you have the setpwfile function. */
389 /* #undef HAVE_SETPWFILE */
391 /* Define if you have the setsid function. */
392 /* #undef HAVE_SETSID */
394 /* Define if you have the signal function. */
395 #define HAVE_SIGNAL 1
397 /* Define if you have the sigset function. */
398 /* #undef HAVE_SIGSET */
400 /* Define if you have the snprintf function. */
401 /* #undef HAVE_SNPRINTF */
403 /* Define if you have the socket function. */
404 #define HAVE_SOCKET 1
406 /* Define if you have the strdup function. */
407 #define HAVE_STRDUP 1
409 /* Define if you have the strerror function. */
410 #define HAVE_STRERROR 1
412 /* Define if you have the strpbrk function. */
413 #define HAVE_STRPBRK 1
415 /* Define if you have the strrchr function. */
416 #define HAVE_STRRCHR 1
418 /* Define if you have the strsep function. */
419 /* #undef HAVE_STRSEP */
421 /* Define if you have the strspn function. */
422 #define HAVE_STRSPN 1
424 /* Define if you have the strstr function. */
425 #define HAVE_STRSTR 1
427 /* Define if you have the strtok function. */
428 #define HAVE_STRTOK 1
430 /* Define if you have the strtok_r function. */
431 /* #undef HAVE_STRTOK_R */
433 /* Define if you have the strtol function. */
434 #define HAVE_STRTOL 1
436 /* Define if you have the strtoul function. */
437 #define HAVE_STRTOUL 1
439 /* Define if you have the sysconf function. */
440 /* #undef HAVE_SYSCONF */
442 /* Define if you have the tempnam function. */
443 /* #undef HAVE_TEMPNAM */
445 /* Define if you have the thr_getconcurrency function. */
446 /* #undef HAVE_THR_GETCONCURRENCY */
448 /* Define if you have the thr_setconcurrency function. */
449 /* #undef HAVE_THR_SETCONCURRENCY */
451 /* Define if you have the thr_yield function. */
452 /* #undef HAVE_THR_YIELD */
454 /* Define if you have the vsnprintf function. */
455 #define HAVE_VSNPRINTF 1
457 /* Define if you have the vsprintf function. */
458 #define HAVE_VSPRINTF 1
460 /* Define if you have the waitpid function. */
461 /* #undef HAVE_WAITPID 1 */
463 /* Define if you have the <arpa/nameser.h> header file. */
464 /* #undef HAVE_ARPA_NAMESER_H */
466 /* Define if you have the <crypt.h> header file. */
467 /* #undef HAVE_CRYPT_H */
469 /* Define if you have the <db.h> header file. */
472 /* Define if you have the <db_185.h> header file. */
473 /* #undef HAVE_DB_185_H */
475 /* Define if you have the <des.h> header file. */
476 /* #undef HAVE_DES_H */
478 /* Define if you have the <dirent.h> header file. */
479 /* #undef HAVE_DIRENT_H */
481 /* Define if you have the <dmalloc.h> header file. */
482 /* #undef HAVE_DMALLOC_H */
484 /* Define if you have the <errno.h> header file. */
485 #define HAVE_ERRNO_H 1
487 /* Define if you have the <fcntl.h> header file. */
488 #define HAVE_FCNTL_H 1
490 /* Define if you have the <filio.h> header file. */
491 /* #undef HAVE_FILIO_H */
493 /* Define if you have the <gdbm.h> header file. */
494 /* #undef HAVE_GDBM_H */
496 /* Define if you have the <getopt.h> header file. */
497 /* #undef HAVE_GETOPT_H */
499 /* Define if you have the <kerberosIV/des.h> header file. */
500 /* #undef HAVE_KERBEROSIV_DES_H */
502 /* Define if you have the <kerberosIV/krb.h> header file. */
503 /* #undef HAVE_KERBEROSIV_KRB_H */
505 /* Define if you have the <krb.h> header file. */
506 /* #undef HAVE_KRB_H */
508 /* Define if you have the <libutil.h> header file. */
509 /* #undef HAVE_LIBUTIL_H */
511 /* Define if you have the <limits.h> header file. */
512 #define HAVE_LIMITS_H 1
514 /* Define if you have the <lwp/lwp.h> header file. */
515 /* #undef HAVE_LWP_LWP_H */
517 /* Define if you have the <mach/cthreads.h> header file. */
518 /* #undef HAVE_MACH_CTHREADS_H */
520 /* Define if you have the <malloc.h> header file. */
521 #define HAVE_MALLOC_H 1
523 /* Define if you have the <memory.h> header file. */
524 /* #define HAVE_MEMORY_H */
526 /* Define if you have the <ncurses.h> header file. */
527 /* #undef HAVE_NCURSES_H */
529 /* Define if you have the <ndbm.h> header file. */
530 /* #undef HAVE_NDBM_H */
532 /* Define if you have the <ndir.h> header file. */
533 /* #undef HAVE_NDIR_H */
535 /* Define if you have the <psap.h> header file. */
536 /* #undef HAVE_PSAP_H */
538 /* Define if you have the <pthread.h> header file. */
539 /* #undef HAVE_PTHREAD_H */
541 /* Define if you have the <pwd.h> header file. */
542 /* #undef HAVE_PWD_H */
544 /* Define if you have the <regex.h> header file. */
545 /* #undef HAVE_REGEX_H */
547 /* Define if you have the <resolv.h> header file. */
548 /* #undef HAVE_RESOLV_H */
550 /* Define if you have the <sched.h> header file. */
551 /* #undef HAVE_SCHED_H */
553 /* Define if you have the <sgtty.h> header file. */
554 /* #undef HAVE_SGTTY_H */
556 /* Define if you have the <stdarg.h> header file. */
557 #define HAVE_STDARG_H 1
559 /* Define if you have the <stddef.h> header file. */
560 #define HAVE_STDDEF_H 1
562 /* Define if you have the <string.h> header file. */
563 #define HAVE_STRING_H 1
565 /* Define if you have the <strings.h> header file. */
566 /* #undef HAVE_STRINGS_H */
568 /* Define if you have the <synch.h> header file. */
569 /* #undef HAVE_SYNCH_H */
571 /* Define if you have the <sys/dir.h> header file. */
572 /* #undef HAVE_SYS_DIR_H */
574 /* Define if you have the <sys/errno.h> header file. */
575 /* #undef HAVE_SYS_ERRNO_H */
577 /* Define if you have the <sys/file.h> header file. */
578 /* #undef HAVE_SYS_FILE_H */
580 /* Define if you have the <sys/filio.h> header file. */
581 /* #undef HAVE_SYS_FILIO_H */
583 /* Define if you have the <sys/ioctl.h> header file. */
584 /* #undef HAVE_SYS_IOCTL_H */
586 /* Define if you have the <sys/ndir.h> header file. */
587 /* #undef HAVE_SYS_NDIR_H */
589 /* Define if you have the <sys/param.h> header file. */
590 /* #undef HAVE_SYS_PARAM_H */
592 /* Define if you have the <sys/resource.h> header file. */
593 /* #undef HAVE_SYS_RESOURCE_H */
595 /* Define if you have the <sys/socket.h> header file. */
596 /* #undef HAVE_SYS_SOCKET_H */
598 /* Define if you have the <sys/syslog.h> header file. */
599 /* #undef HAVE_SYS_SYSLOG_H */
601 /* Define if you have the <sys/time.h> header file. */
602 /* #undef HAVE_SYS_TIME_H */
604 /* Define if you have the <sys/types.h> header file. */
605 #define HAVE_SYS_TYPES_H 1
607 /* Define if you have the <sysexits.h> header file. */
608 /* #undef HAVE_SYSEXITS_H */
610 /* Define if you have the <syslog.h> header file. */
611 /* #undef HAVE_SYSLOG_H */
613 /* Define if you have the <tcpd.h> header file. */
614 /* #undef HAVE_TCPD_H */
616 /* Define if you have the <termcap.h> header file. */
617 /* #undef HAVE_TERMCAP_H */
619 /* Define if you have the <termios.h> header file. */
620 /* #undef HAVE_TERMIOS_H */
622 /* Define if you have the <thread.h> header file. */
623 /* #undef HAVE_THREAD_H */
625 /* Define if you have the <unistd.h> header file. */
626 /* #undef HAVE_UNISTD_H */
628 /* Define if you have the V3 library (-lV3). */
629 /* #undef HAVE_LIBV3 */
631 /* Define if you have the bind library (-lbind). */
632 /* #undef HAVE_LIBBIND */
634 /* Define if you have the dmalloc library (-ldmalloc). */
635 /* #undef HAVE_LIBDMALLOC */
637 /* Define if you have the gen library (-lgen). */
638 /* #undef HAVE_LIBGEN */
640 /* Define if you have the inet library (-linet). */
641 /* #undef HAVE_LIBINET */
643 /* Define if you have the net library (-lnet). */
644 /* #undef HAVE_LIBNET */
646 /* Define if you have the nsl library (-lnsl). */
647 /* #undef HAVE_LIBNSL */
649 /* Define if you have the nsl_s library (-lnsl_s). */
650 /* #undef HAVE_LIBNSL_S */
652 /* Define if you have the resolv library (-lresolv). */
653 /* #undef HAVE_LIBRESOLV */
655 /* Define if you have the socket library (-lsocket). */
656 /* #undef HAVE_LIBSOCKET */
658 /* define if you have -lxtpp */
659 /* #undef HAVE_XTPP */
661 /* define if you have -ldsap */
662 /* #undef HAVE_DSAP */
664 /* define if you have -lisode */
665 /* #undef HAVE_ISODE */
667 /* define if you have -lpp */
670 /* define if you have Kerberos des_debug */
671 /* #undef HAVE_DES_DEBUG */
673 /* define if you have Kerberos */
674 /* #undef HAVE_KERBEROS */
676 /* define if pthreads API compatible with final spec */
677 /* #undef HAVE_PTHREADS_FINAL */
679 /* define if pthreads API compatible with draft4 spec */
680 /* #undef HAVE_PTHREADS_D4 */
682 /* define if you have LinuxThreads */
683 /* #undef HAVE_LINUX_THREADS */
685 /* define if you have POSIX Threads */
686 /* #undef HAVE_PTHREADS */
688 /* define if you have pthread_detach function */
689 /* #undef HAVE_PTHREAD_DETACH */
691 /* define if you have Mach Cthreads */
692 /* #undef HAVE_MACH_CTHREADS */
694 /* if you have Solaris LWP (thr) package */
695 /* #undef HAVE_THR */
697 /* if you have SunOS LWP package */
698 /* #undef HAVE_LWP */
700 /* define if select implicitly yields */
701 #define HAVE_YIELDING_SELECT 1
703 /* define if you have (or want) no threads */
704 /* #undef NO_THREADS */
706 /* define if you have -lwrap */
707 /* #undef HAVE_TCPD */
709 /* define if you have -ltermcap */
710 /* #undef HAVE_TERMCAP */
712 /* define if you have -lncurses */
713 /* #undef HAVE_NCURSES */
715 /* define if you have no termcap support */
718 /* Define if TIOCGWINSZ requires sys/ioctl.h */
719 /* #undef GWINSZ_IN_SYS_IOCTL */
721 /* define if you have POSIX termios */
722 /* #undef HAVE_POSIX_TERMIOS */
724 /* Define if system has ptrdiff_t type */
725 #define HAVE_PTRDIFF_T 1
727 /* define if cross compiling */
728 /* #undef CROSS_COMPILING */
730 /* begin of postamble */
736 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
739 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
743 #include "ldap_cdefs.h"
744 #include "ldap_features.h"
746 #include <ac/assert.h>
748 #endif /* _LDAP_PORTABLE_H */