1 /* include/portable.h. Generated from portable.hin by configure. */ 2 /* include/portable.hin. Generated from configure.ac by autoheader. */ 3 4 5 /* begin of portable.h.pre */ 6 /* This work is part of OpenLDAP Software <http://www.openldap.org/>. 7 * 8 * Copyright 1998-2024 The OpenLDAP Foundation 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted only as authorized by the OpenLDAP 13 * Public License. 14 * 15 * A copy of this license is available in the file LICENSE in the 16 * top-level directory of the distribution or, alternatively, at 17 * <http://www.OpenLDAP.org/license.html>. 18 */ 19 20 #ifndef _LDAP_PORTABLE_H 21 #define _LDAP_PORTABLE_H 22 23 /* define this if needed to get reentrant functions */ 24 #ifndef REENTRANT 25 #define REENTRANT 1 26 #endif 27 #ifndef _REENTRANT 28 #define _REENTRANT 1 29 #endif 30 31 /* define this if needed to get threadsafe functions */ 32 #ifndef THREADSAFE 33 #define THREADSAFE 1 34 #endif 35 #ifndef _THREADSAFE 36 #define _THREADSAFE 1 37 #endif 38 #ifndef THREAD_SAFE 39 #define THREAD_SAFE 1 40 #endif 41 #ifndef _THREAD_SAFE 42 #define _THREAD_SAFE 1 43 #endif 44 45 #ifndef _SGI_MP_SOURCE 46 #define _SGI_MP_SOURCE 1 47 #endif 48 49 /* end of portable.h.pre */ 50 51 52 /* Define if building universal (internal helper macro) */ 53 /* #undef AC_APPLE_UNIVERSAL_BUILD */ 54 55 /* define to use both <string.h> and <strings.h> */ 56 /* #undef BOTH_STRINGS_H */ 57 58 /* define if cross compiling */ 59 /* #undef CROSS_COMPILING */ 60 61 /* set to the number of arguments ctime_r() expects */ 62 #define CTIME_R_NARGS 2 63 64 /* define if toupper() requires islower() */ 65 /* #undef C_UPPER_LOWER */ 66 67 /* define if sys_errlist is not declared in stdio.h or errno.h */ 68 /* #undef DECL_SYS_ERRLIST */ 69 70 /* define to enable slapi library */ 71 /* #undef ENABLE_SLAPI */ 72 73 /* defined to be the EXE extension */ 74 #define EXEEXT "" 75 76 /* set to the number of arguments gethostbyaddr_r() expects */ 77 /* #undef GETHOSTBYADDR_R_NARGS */ 78 79 /* set to the number of arguments gethostbyname_r() expects */ 80 /* #undef GETHOSTBYNAME_R_NARGS */ 81 82 /* Define to 1 if `TIOCGWINSZ' requires <sys/ioctl.h>. */ 83 /* #undef GWINSZ_IN_SYS_IOCTL */ 84 85 /* define if you have AIX security lib */ 86 /* #undef HAVE_AIX_SECURITY */ 87 88 /* Define to 1 if you have the <argon2.h> header file. */ 89 /* #undef HAVE_ARGON2_H */ 90 91 /* Define to 1 if you have the <arpa/inet.h> header file. */ 92 #define HAVE_ARPA_INET_H 1 93 94 /* Define to 1 if you have the <arpa/nameser.h> header file. */ 95 #define HAVE_ARPA_NAMESER_H 1 96 97 /* Define to 1 if you have the <assert.h> header file. */ 98 #define HAVE_ASSERT_H 1 99 100 /* Define to 1 if you have the `bcopy' function. */ 101 #define HAVE_BCOPY 1 102 103 /* Define to 1 if you have the <bits/types.h> header file. */ 104 /* #undef HAVE_BITS_TYPES_H */ 105 106 /* Define to 1 if you have the `chroot' function. */ 107 #define HAVE_CHROOT 1 108 109 /* Define to 1 if you have the `clock_gettime' function. */ 110 #define HAVE_CLOCK_GETTIME 1 111 112 /* Define to 1 if you have the `closesocket' function. */ 113 /* #undef HAVE_CLOSESOCKET */ 114 115 /* Define to 1 if you have the <conio.h> header file. */ 116 /* #undef HAVE_CONIO_H */ 117 118 /* define if crypt(3) is available */ 119 /* #undef HAVE_CRYPT */ 120 121 /* Define to 1 if you have the <crypt.h> header file. */ 122 /* #undef HAVE_CRYPT_H */ 123 124 /* define if crypt_r() is also available */ 125 /* #undef HAVE_CRYPT_R */ 126 127 /* Define to 1 if you have the `ctime_r' function. */ 128 #define HAVE_CTIME_R 1 129 130 /* define if you have Cyrus SASL */ 131 /* #undef HAVE_CYRUS_SASL */ 132 133 /* define if your system supports /dev/poll */ 134 /* #undef HAVE_DEVPOLL */ 135 136 /* Define to 1 if you have the <direct.h> header file. */ 137 /* #undef HAVE_DIRECT_H */ 138 139 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. 140 */ 141 #define HAVE_DIRENT_H 1 142 143 /* Define to 1 if you have the <dlfcn.h> header file. */ 144 #define HAVE_DLFCN_H 1 145 146 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ 147 /* #undef HAVE_DOPRNT */ 148 149 /* define if system uses EBCDIC instead of ASCII */ 150 /* #undef HAVE_EBCDIC */ 151 152 /* Define to 1 if you have the `endgrent' function. */ 153 #define HAVE_ENDGRENT 1 154 155 /* Define to 1 if you have the `endpwent' function. */ 156 #define HAVE_ENDPWENT 1 157 158 /* define if your system supports epoll */ 159 /* #undef HAVE_EPOLL */ 160 161 /* Define to 1 if you have the <errno.h> header file. */ 162 #define HAVE_ERRNO_H 1 163 164 /* Define to 1 if you have the `fcntl' function. */ 165 #define HAVE_FCNTL 1 166 167 /* Define to 1 if you have the <fcntl.h> header file. */ 168 #define HAVE_FCNTL_H 1 169 170 /* define if you actually have FreeBSD fetch(3) */ 171 /* NETBSD: API incompatible */ 172 #if 0 173 /* #undef HAVE_FETCH */ 174 #endif 175 176 /* Define to 1 if you have the <filio.h> header file. */ 177 /* #undef HAVE_FILIO_H */ 178 179 /* Define to 1 if you have the `flock' function. */ 180 #define HAVE_FLOCK 1 181 182 /* Define to 1 if you have the `fmemopen' function. */ 183 #define HAVE_FMEMOPEN 1 184 185 /* Define to 1 if you have the `fstat' function. */ 186 #define HAVE_FSTAT 1 187 188 /* Define to 1 if you have the `gai_strerror' function. */ 189 #define HAVE_GAI_STRERROR 1 190 191 /* Define to 1 if you have the `getaddrinfo' function. */ 192 #define HAVE_GETADDRINFO 1 193 194 /* Define to 1 if you have the `getdtablesize' function. */ 195 #define HAVE_GETDTABLESIZE 1 196 197 /* Define to 1 if you have the `geteuid' function. */ 198 #define HAVE_GETEUID 1 199 200 /* Define to 1 if you have the `getgrgid' function. */ 201 #define HAVE_GETGRGID 1 202 203 /* Define to 1 if you have the `gethostbyaddr_r' function. */ 204 #define HAVE_GETHOSTBYADDR_R 1 205 206 /* Define to 1 if you have the `gethostbyname_r' function. */ 207 #define HAVE_GETHOSTBYNAME_R 1 208 209 /* Define to 1 if you have the `gethostname' function. */ 210 #define HAVE_GETHOSTNAME 1 211 212 /* Define to 1 if you have the `getnameinfo' function. */ 213 #define HAVE_GETNAMEINFO 1 214 215 /* Define to 1 if you have the `getopt' function. */ 216 #define HAVE_GETOPT 1 217 218 /* Define to 1 if you have the <getopt.h> header file. */ 219 #define HAVE_GETOPT_H 1 220 221 /* Define to 1 if you have the `getpassphrase' function. */ 222 /* #undef HAVE_GETPASSPHRASE */ 223 224 /* Define to 1 if you have the `getpeereid' function. */ 225 #define HAVE_GETPEEREID 1 226 227 /* Define to 1 if you have the `getpeerucred' function. */ 228 /* #undef HAVE_GETPEERUCRED */ 229 230 /* Define to 1 if you have the `getpwnam' function. */ 231 #define HAVE_GETPWNAM 1 232 233 /* Define to 1 if you have the `getpwuid' function. */ 234 #define HAVE_GETPWUID 1 235 236 /* Define to 1 if you have the `getspnam' function. */ 237 /* #undef HAVE_GETSPNAM */ 238 239 /* Define to 1 if you have the `gettimeofday' function. */ 240 #define HAVE_GETTIMEOFDAY 1 241 242 /* Define to 1 if you have the <gmp.h> header file. */ 243 /* #undef HAVE_GMP_H */ 244 245 /* Define to 1 if you have the `gmtime_r' function. */ 246 #define HAVE_GMTIME_R 1 247 248 /* define if you have GNUtls */ 249 /* #undef HAVE_GNUTLS */ 250 251 /* Define to 1 if you have the <gnutls/gnutls.h> header file. */ 252 /* #undef HAVE_GNUTLS_GNUTLS_H */ 253 254 /* if you have GNU Pth */ 255 /* #undef HAVE_GNU_PTH */ 256 257 /* Define to 1 if you have the <grp.h> header file. */ 258 #define HAVE_GRP_H 1 259 260 /* Define to 1 if you have the `hstrerror' function. */ 261 #define HAVE_HSTRERROR 1 262 263 /* define to you inet_aton(3) is available */ 264 #define HAVE_INET_ATON 1 265 266 /* Define to 1 if you have the `inet_ntoa_b' function. */ 267 /* #undef HAVE_INET_NTOA_B */ 268 269 /* Define to 1 if you have the `inet_ntop' function. */ 270 #define HAVE_INET_NTOP 1 271 272 /* Define to 1 if you have the `initgroups' function. */ 273 #define HAVE_INITGROUPS 1 274 275 /* Define to 1 if you have the <inttypes.h> header file. */ 276 #define HAVE_INTTYPES_H 1 277 278 /* Define to 1 if you have the `ioctl' function. */ 279 #define HAVE_IOCTL 1 280 281 /* Define to 1 if you have the <io.h> header file. */ 282 /* #undef HAVE_IO_H */ 283 284 /* define if your system supports kqueue */ 285 #define HAVE_KQUEUE 1 286 287 /* define if you have libargon2 */ 288 /* #undef HAVE_LIBARGON2 */ 289 290 /* define if you have -levent */ 291 /* #undef HAVE_LIBEVENT */ 292 293 /* Define to 1 if you have the `gen' library (-lgen). */ 294 /* #undef HAVE_LIBGEN */ 295 296 /* Define to 1 if you have the `gmp' library (-lgmp). */ 297 /* #undef HAVE_LIBGMP */ 298 299 /* Define to 1 if you have the `inet' library (-linet). */ 300 /* #undef HAVE_LIBINET */ 301 302 /* define if you have libtool -ltdl */ 303 /* #undef HAVE_LIBLTDL */ 304 305 /* Define to 1 if you have the `net' library (-lnet). */ 306 /* #undef HAVE_LIBNET */ 307 308 /* Define to 1 if you have the `nsl' library (-lnsl). */ 309 /* #undef HAVE_LIBNSL */ 310 311 /* Define to 1 if you have the `nsl_s' library (-lnsl_s). */ 312 /* #undef HAVE_LIBNSL_S */ 313 314 /* Define to 1 if you have the `socket' library (-lsocket). */ 315 /* #undef HAVE_LIBSOCKET */ 316 317 /* define if you have libsodium */ 318 /* #undef HAVE_LIBSODIUM */ 319 320 /* Define to 1 if you have the <libutil.h> header file. */ 321 /* #undef HAVE_LIBUTIL_H */ 322 323 /* Define to 1 if you have the `V3' library (-lV3). */ 324 /* #undef HAVE_LIBV3 */ 325 326 /* Define to 1 if you have the <limits.h> header file. */ 327 #define HAVE_LIMITS_H 1 328 329 /* if you have LinuxThreads */ 330 /* #undef HAVE_LINUX_THREADS */ 331 332 /* Define to 1 if you have the <locale.h> header file. */ 333 #define HAVE_LOCALE_H 1 334 335 /* Define to 1 if you have the `localtime_r' function. */ 336 #define HAVE_LOCALTIME_R 1 337 338 /* Define to 1 if you have the `lockf' function. */ 339 #define HAVE_LOCKF 1 340 341 /* Define to 1 if the system has the type `long long'. */ 342 #define HAVE_LONG_LONG 1 343 344 /* Define to 1 if you have the <ltdl.h> header file. */ 345 /* #undef HAVE_LTDL_H */ 346 347 /* Define to 1 if you have the <malloc.h> header file. */ 348 #define HAVE_MALLOC_H 1 349 350 /* Define to 1 if you have the `memcpy' function. */ 351 #define HAVE_MEMCPY 1 352 353 /* Define to 1 if you have the `memmove' function. */ 354 #define HAVE_MEMMOVE 1 355 356 /* Define to 1 if you have the <memory.h> header file. */ 357 #define HAVE_MEMORY_H 1 358 359 /* Define to 1 if you have the `memrchr' function. */ 360 #define HAVE_MEMRCHR 1 361 362 /* Define to 1 if you have the `mkstemp' function. */ 363 #define HAVE_MKSTEMP 1 364 365 /* Define to 1 if you have the `mktemp' function. */ 366 #define HAVE_MKTEMP 1 367 368 /* define this if you have mkversion */ 369 #define HAVE_MKVERSION 1 370 371 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ 372 /* #undef HAVE_NDIR_H */ 373 374 /* Define to 1 if you have the <netinet/tcp.h> header file. */ 375 #define HAVE_NETINET_TCP_H 1 376 377 /* define if strerror_r returns char* instead of int */ 378 /* #undef HAVE_NONPOSIX_STRERROR_R */ 379 380 /* if you have NT Event Log */ 381 /* #undef HAVE_NT_EVENT_LOG */ 382 383 /* if you have NT Service Manager */ 384 /* #undef HAVE_NT_SERVICE_MANAGER */ 385 386 /* if you have NT Threads */ 387 /* #undef HAVE_NT_THREADS */ 388 389 /* define if you have OpenSSL */ 390 #define HAVE_OPENSSL 1 391 392 /* Define to 1 if you have the <openssl/bn.h> header file. */ 393 /* #undef HAVE_OPENSSL_BN_H */ 394 395 /* Define to 1 if you have the <openssl/crypto.h> header file. */ 396 /* #undef HAVE_OPENSSL_CRYPTO_H */ 397 398 /* Define to 1 if you have the <openssl/ssl.h> header file. */ 399 #define HAVE_OPENSSL_SSL_H 1 400 401 /* Define to 1 if you have the `pipe' function. */ 402 #define HAVE_PIPE 1 403 404 /* Define to 1 if you have the `poll' function. */ 405 #define HAVE_POLL 1 406 407 /* Define to 1 if you have the <poll.h> header file. */ 408 #define HAVE_POLL_H 1 409 410 /* Define to 1 if you have the <process.h> header file. */ 411 /* #undef HAVE_PROCESS_H */ 412 413 /* Define to 1 if you have the <psap.h> header file. */ 414 /* #undef HAVE_PSAP_H */ 415 416 /* define to pthreads API spec revision */ 417 #define HAVE_PTHREADS 10 418 419 /* define if you have pthread_detach function */ 420 #define HAVE_PTHREAD_DETACH 1 421 422 /* Define to 1 if you have the `pthread_getconcurrency' function. */ 423 /* #undef HAVE_PTHREAD_GETCONCURRENCY */ 424 425 /* Define to 1 if you have the <pthread.h> header file. */ 426 #define HAVE_PTHREAD_H 1 427 428 /* Define to 1 if you have the `pthread_kill' function. */ 429 #define HAVE_PTHREAD_KILL 1 430 431 /* Define to 1 if you have the `pthread_kill_other_threads_np' function. */ 432 /* #undef HAVE_PTHREAD_KILL_OTHER_THREADS_NP */ 433 434 /* define if you have pthread_rwlock_destroy function */ 435 #define HAVE_PTHREAD_RWLOCK_DESTROY 1 436 437 /* Define to 1 if you have the `pthread_setconcurrency' function. */ 438 /* #undef HAVE_PTHREAD_SETCONCURRENCY */ 439 440 /* Define to 1 if you have the `pthread_yield' function. */ 441 /* #undef HAVE_PTHREAD_YIELD */ 442 443 /* Define to 1 if you have the <pth.h> header file. */ 444 /* #undef HAVE_PTH_H */ 445 446 /* Define to 1 if the system has the type `ptrdiff_t'. */ 447 #define HAVE_PTRDIFF_T 1 448 449 /* Define to 1 if you have the <pwd.h> header file. */ 450 #define HAVE_PWD_H 1 451 452 /* Define to 1 if you have the `read' function. */ 453 #define HAVE_READ 1 454 455 /* Define to 1 if you have the `recv' function. */ 456 #define HAVE_RECV 1 457 458 /* Define to 1 if you have the `recvfrom' function. */ 459 #define HAVE_RECVFROM 1 460 461 /* Define to 1 if you have the <regex.h> header file. */ 462 #define HAVE_REGEX_H 1 463 464 /* Define to 1 if you have the <resolv.h> header file. */ 465 #define HAVE_RESOLV_H 1 466 467 /* define if you have res_query() */ 468 #define HAVE_RES_QUERY 1 469 470 /* Define to 1 if you have the <sasl.h> header file. */ 471 /* #undef HAVE_SASL_H */ 472 473 /* Define to 1 if you have the <sasl/sasl.h> header file. */ 474 /* #undef HAVE_SASL_SASL_H */ 475 476 /* define if your SASL library has sasl_version() */ 477 /* #undef HAVE_SASL_VERSION */ 478 479 /* Define to 1 if you have the <sched.h> header file. */ 480 #define HAVE_SCHED_H 1 481 482 /* Define to 1 if you have the `sched_yield' function. */ 483 #define HAVE_SCHED_YIELD 1 484 485 /* Define to 1 if you have the `send' function. */ 486 #define HAVE_SEND 1 487 488 /* Define to 1 if you have the `sendmsg' function. */ 489 #define HAVE_SENDMSG 1 490 491 /* Define to 1 if you have the `sendto' function. */ 492 #define HAVE_SENDTO 1 493 494 /* Define to 1 if you have the `setegid' function. */ 495 #define HAVE_SETEGID 1 496 497 /* Define to 1 if you have the `seteuid' function. */ 498 #define HAVE_SETEUID 1 499 500 /* Define to 1 if you have the `setgid' function. */ 501 #define HAVE_SETGID 1 502 503 /* Define to 1 if you have the `setpwfile' function. */ 504 /* #undef HAVE_SETPWFILE */ 505 506 /* Define to 1 if you have the `setsid' function. */ 507 #define HAVE_SETSID 1 508 509 /* Define to 1 if you have the `setuid' function. */ 510 #define HAVE_SETUID 1 511 512 /* Define to 1 if you have the <sgtty.h> header file. */ 513 #define HAVE_SGTTY_H 1 514 515 /* Define to 1 if you have the <shadow.h> header file. */ 516 /* #undef HAVE_SHADOW_H */ 517 518 /* Define to 1 if you have the `sigaction' function. */ 519 #define HAVE_SIGACTION 1 520 521 /* Define to 1 if you have the `signal' function. */ 522 #define HAVE_SIGNAL 1 523 524 /* Define to 1 if you have the `sigset' function. */ 525 #define HAVE_SIGSET 1 526 527 /* define if you have -lslp */ 528 /* #undef HAVE_SLP */ 529 530 /* Define to 1 if you have the <slp.h> header file. */ 531 /* #undef HAVE_SLP_H */ 532 533 /* Define to 1 if you have the `snprintf' function. */ 534 #define HAVE_SNPRINTF 1 535 536 /* Define to 1 if you have the <sodium.h> header file. */ 537 /* #undef HAVE_SODIUM_H */ 538 539 /* if you have spawnlp() */ 540 /* #undef HAVE_SPAWNLP */ 541 542 /* Define to 1 if you have the <sqlext.h> header file. */ 543 /* #undef HAVE_SQLEXT_H */ 544 545 /* Define to 1 if you have the <sql.h> header file. */ 546 /* #undef HAVE_SQL_H */ 547 548 /* Define to 1 if you have the <stddef.h> header file. */ 549 #define HAVE_STDDEF_H 1 550 551 /* Define to 1 if you have the <stdint.h> header file. */ 552 #define HAVE_STDINT_H 1 553 554 /* Define to 1 if you have the <stdio.h> header file. */ 555 #define HAVE_STDIO_H 1 556 557 /* Define to 1 if you have the <stdlib.h> header file. */ 558 #define HAVE_STDLIB_H 1 559 560 /* Define to 1 if you have the `strdup' function. */ 561 #define HAVE_STRDUP 1 562 563 /* Define to 1 if you have the `strerror' function. */ 564 #define HAVE_STRERROR 1 565 566 /* Define to 1 if you have the `strerror_r' function. */ 567 #define HAVE_STRERROR_R 1 568 569 /* Define to 1 if you have the `strftime' function. */ 570 #define HAVE_STRFTIME 1 571 572 /* Define to 1 if you have the <strings.h> header file. */ 573 #define HAVE_STRINGS_H 1 574 575 /* Define to 1 if you have the <string.h> header file. */ 576 #define HAVE_STRING_H 1 577 578 /* Define to 1 if you have the `strpbrk' function. */ 579 #define HAVE_STRPBRK 1 580 581 /* Define to 1 if you have the `strrchr' function. */ 582 #define HAVE_STRRCHR 1 583 584 /* Define to 1 if you have the `strsep' function. */ 585 #define HAVE_STRSEP 1 586 587 /* Define to 1 if you have the `strspn' function. */ 588 #define HAVE_STRSPN 1 589 590 /* Define to 1 if you have the `strstr' function. */ 591 #define HAVE_STRSTR 1 592 593 /* Define to 1 if you have the `strtol' function. */ 594 #define HAVE_STRTOL 1 595 596 /* Define to 1 if you have the `strtoll' function. */ 597 #define HAVE_STRTOLL 1 598 599 /* Define to 1 if you have the `strtoq' function. */ 600 #define HAVE_STRTOQ 1 601 602 /* Define to 1 if you have the `strtoul' function. */ 603 #define HAVE_STRTOUL 1 604 605 /* Define to 1 if you have the `strtoull' function. */ 606 #define HAVE_STRTOULL 1 607 608 /* Define to 1 if you have the `strtouq' function. */ 609 #define HAVE_STRTOUQ 1 610 611 /* Define to 1 if `msg_accrightslen' is a member of `struct msghdr'. */ 612 /* #undef HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN */ 613 614 /* Define to 1 if `msg_control' is a member of `struct msghdr'. */ 615 /* #undef HAVE_STRUCT_MSGHDR_MSG_CONTROL */ 616 617 /* Define to 1 if `pw_gecos' is a member of `struct passwd'. */ 618 #define HAVE_STRUCT_PASSWD_PW_GECOS 1 619 620 /* Define to 1 if `pw_passwd' is a member of `struct passwd'. */ 621 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 622 623 /* Define to 1 if `st_blksize' is a member of `struct stat'. */ 624 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 625 626 /* Define to 1 if `st_fstype' is a member of `struct stat'. */ 627 /* #undef HAVE_STRUCT_STAT_ST_FSTYPE */ 628 629 /* define to 1 if st_fstype is char * */ 630 /* #undef HAVE_STRUCT_STAT_ST_FSTYPE_CHAR */ 631 632 /* define to 1 if st_fstype is int */ 633 /* #undef HAVE_STRUCT_STAT_ST_FSTYPE_INT */ 634 635 /* Define to 1 if `st_vfstype' is a member of `struct stat'. */ 636 /* #undef HAVE_STRUCT_STAT_ST_VFSTYPE */ 637 638 /* Define to 1 if you have the <synch.h> header file. */ 639 /* #undef HAVE_SYNCH_H */ 640 641 /* Define to 1 if you have the `sysconf' function. */ 642 #define HAVE_SYSCONF 1 643 644 /* Define to 1 if you have the <sysexits.h> header file. */ 645 #define HAVE_SYSEXITS_H 1 646 647 /* Define to 1 if you have the <syslog.h> header file. */ 648 #define HAVE_SYSLOG_H 1 649 650 /* define if you have systemd */ 651 /* #undef HAVE_SYSTEMD */ 652 653 /* Define to 1 if you have the <systemd/sd-daemon.h> header file. */ 654 /* #undef HAVE_SYSTEMD_SD_DAEMON_H */ 655 656 /* Define to 1 if you have the <sys/devpoll.h> header file. */ 657 /* #undef HAVE_SYS_DEVPOLL_H */ 658 659 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. 660 */ 661 /* #undef HAVE_SYS_DIR_H */ 662 663 /* Define to 1 if you have the <sys/epoll.h> header file. */ 664 /* #undef HAVE_SYS_EPOLL_H */ 665 666 /* define if you actually have sys_errlist in your libs */ 667 /* #undef HAVE_SYS_ERRLIST */ 668 669 /* Define to 1 if you have the <sys/errno.h> header file. */ 670 #define HAVE_SYS_ERRNO_H 1 671 672 /* Define to 1 if you have the <sys/event.h> header file. */ 673 #define HAVE_SYS_EVENT_H 1 674 675 /* Define to 1 if you have the <sys/file.h> header file. */ 676 #define HAVE_SYS_FILE_H 1 677 678 /* Define to 1 if you have the <sys/filio.h> header file. */ 679 #define HAVE_SYS_FILIO_H 1 680 681 /* Define to 1 if you have the <sys/fstyp.h> header file. */ 682 /* #undef HAVE_SYS_FSTYP_H */ 683 684 /* Define to 1 if you have the <sys/ioctl.h> header file. */ 685 #define HAVE_SYS_IOCTL_H 1 686 687 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. 688 */ 689 /* #undef HAVE_SYS_NDIR_H */ 690 691 /* Define to 1 if you have the <sys/param.h> header file. */ 692 #define HAVE_SYS_PARAM_H 1 693 694 /* Define to 1 if you have the <sys/poll.h> header file. */ 695 #define HAVE_SYS_POLL_H 1 696 697 /* Define to 1 if you have the <sys/privgrp.h> header file. */ 698 /* #undef HAVE_SYS_PRIVGRP_H */ 699 700 /* Define to 1 if you have the <sys/resource.h> header file. */ 701 #define HAVE_SYS_RESOURCE_H 1 702 703 /* Define to 1 if you have the <sys/select.h> header file. */ 704 #define HAVE_SYS_SELECT_H 1 705 706 /* Define to 1 if you have the <sys/socket.h> header file. */ 707 #define HAVE_SYS_SOCKET_H 1 708 709 /* Define to 1 if you have the <sys/stat.h> header file. */ 710 #define HAVE_SYS_STAT_H 1 711 712 /* Define to 1 if you have the <sys/syslog.h> header file. */ 713 #define HAVE_SYS_SYSLOG_H 1 714 715 /* Define to 1 if you have the <sys/time.h> header file. */ 716 #define HAVE_SYS_TIME_H 1 717 718 /* Define to 1 if you have the <sys/types.h> header file. */ 719 #define HAVE_SYS_TYPES_H 1 720 721 /* Define to 1 if you have the <sys/ucred.h> header file. */ 722 #define HAVE_SYS_UCRED_H 1 723 724 /* Define to 1 if you have the <sys/uio.h> header file. */ 725 #define HAVE_SYS_UIO_H 1 726 727 /* Define to 1 if you have the <sys/un.h> header file. */ 728 #define HAVE_SYS_UN_H 1 729 730 /* Define to 1 if you have the <sys/uuid.h> header file. */ 731 #define HAVE_SYS_UUID_H 1 732 733 /* Define to 1 if you have the <sys/vmount.h> header file. */ 734 /* #undef HAVE_SYS_VMOUNT_H */ 735 736 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ 737 #define HAVE_SYS_WAIT_H 1 738 739 /* define if you have -lwrap */ 740 /* #undef HAVE_TCPD */ 741 742 /* Define to 1 if you have the <tcpd.h> header file. */ 743 /* #undef HAVE_TCPD_H */ 744 745 /* Define to 1 if you have the <termios.h> header file. */ 746 #define HAVE_TERMIOS_H 1 747 748 /* if you have Solaris LWP (thr) package */ 749 /* #undef HAVE_THR */ 750 751 /* Define to 1 if you have the <thread.h> header file. */ 752 /* #undef HAVE_THREAD_H */ 753 754 /* Define to 1 if you have the `thr_getconcurrency' function. */ 755 /* #undef HAVE_THR_GETCONCURRENCY */ 756 757 /* Define to 1 if you have the `thr_setconcurrency' function. */ 758 /* #undef HAVE_THR_SETCONCURRENCY */ 759 760 /* Define to 1 if you have the `thr_yield' function. */ 761 /* #undef HAVE_THR_YIELD */ 762 763 /* define if you have TLS */ 764 #if 0 /* NETBSD: We'll control via Makefile */ 765 /* #undef HAVE_TLS */ 766 #endif 767 768 /* Define to 1 if you have the <unistd.h> header file. */ 769 #define HAVE_UNISTD_H 1 770 771 /* Define to 1 if you have the <utime.h> header file. */ 772 #define HAVE_UTIME_H 1 773 774 /* define if you have uuid_generate() */ 775 /* #undef HAVE_UUID_GENERATE */ 776 777 /* define if you have uuid_to_str() */ 778 /* #undef HAVE_UUID_TO_STR */ 779 780 /* Define to 1 if you have the <uuid/uuid.h> header file. */ 781 /* #undef HAVE_UUID_UUID_H */ 782 783 /* Define to 1 if you have the `vprintf' function. */ 784 #define HAVE_VPRINTF 1 785 786 /* Define to 1 if you have the `vsnprintf' function. */ 787 #define HAVE_VSNPRINTF 1 788 789 /* Define to 1 if you have the `wait4' function. */ 790 #define HAVE_WAIT4 1 791 792 /* Define to 1 if you have the `waitpid' function. */ 793 #define HAVE_WAITPID 1 794 795 /* define if you have winsock */ 796 /* #undef HAVE_WINSOCK */ 797 798 /* define if you have winsock2 */ 799 /* #undef HAVE_WINSOCK2 */ 800 801 /* Define to 1 if you have the <winsock2.h> header file. */ 802 /* #undef HAVE_WINSOCK2_H */ 803 804 /* Define to 1 if you have the <winsock.h> header file. */ 805 /* #undef HAVE_WINSOCK_H */ 806 807 /* Define to 1 if you have the `write' function. */ 808 #define HAVE_WRITE 1 809 810 /* define if select implicitly yields */ 811 #define HAVE_YIELDING_SELECT 1 812 813 /* Define to 1 if you have the `_vsnprintf' function. */ 814 #define HAVE__VSNPRINTF 1 815 816 /* define to 32-bit or greater integer type */ 817 #define LBER_INT_T int 818 819 /* define to large integer type */ 820 #define LBER_LEN_T long 821 822 /* define to socket descriptor type */ 823 #define LBER_SOCKET_T int 824 825 /* define to large integer type */ 826 #define LBER_TAG_T long 827 828 /* define to 1 if library is reentrant */ 829 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1 830 831 /* define to 1 if library is thread safe */ 832 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1 833 834 /* define to LDAP VENDOR VERSION */ 835 /* #undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS */ 836 837 /* define this to add debugging code */ 838 #define LDAP_DEBUG 1 839 840 /* define if LDAP libs are dynamic */ 841 #define LDAP_LIBS_DYNAMIC 1 842 843 /* define to support PF_INET6 */ 844 #define LDAP_PF_INET6 1 845 846 /* define to support PF_LOCAL */ 847 #define LDAP_PF_LOCAL 1 848 849 /* define this to add SLAPI code */ 850 /* #undef LDAP_SLAPI */ 851 852 /* define this to add syslog code */ 853 #define LDAP_SYSLOG 1 854 855 /* Version */ 856 #define LDAP_VENDOR_VERSION 20610 857 858 /* Major */ 859 #define LDAP_VENDOR_VERSION_MAJOR 2 860 861 /* Minor */ 862 #define LDAP_VENDOR_VERSION_MINOR 6 863 864 /* Patch */ 865 #define LDAP_VENDOR_VERSION_PATCH 10 866 867 /* Define to the sub-directory where libtool stores uninstalled libraries. */ 868 #define LT_OBJDIR ".libs/" 869 870 /* define if memcmp is not 8-bit clean or is otherwise broken */ 871 /* #undef NEED_MEMCMP_REPLACEMENT */ 872 873 /* define if you have (or want) no threads */ 874 /* #undef NO_THREADS */ 875 876 /* define to use the original debug style */ 877 /* #undef OLD_DEBUG */ 878 879 /* Package */ 880 #define OPENLDAP_PACKAGE "OpenLDAP" 881 882 /* Version */ 883 #define OPENLDAP_VERSION "2.6.10" 884 885 /* Define to the address where bug reports for this package should be sent. */ 886 #define PACKAGE_BUGREPORT "" 887 888 /* Define to the full name of this package. */ 889 #define PACKAGE_NAME "" 890 891 /* Define to the full name and version of this package. */ 892 #define PACKAGE_STRING "" 893 894 /* Define to the one symbol short name of this package. */ 895 #define PACKAGE_TARNAME "" 896 897 /* Define to the home page for this package. */ 898 #define PACKAGE_URL "" 899 900 /* Define to the version of this package. */ 901 #define PACKAGE_VERSION "" 902 903 /* define if sched_yield yields the entire process */ 904 /* #undef REPLACE_BROKEN_YIELD */ 905 906 /* Define to the type of arg 1 for `select'. */ 907 #define SELECT_TYPE_ARG1 int 908 909 /* Define to the type of args 2, 3 and 4 for `select'. */ 910 #define SELECT_TYPE_ARG234 (fd_set *) 911 912 /* Define to the type of arg 5 for `select'. */ 913 #define SELECT_TYPE_ARG5 (struct timeval *) 914 915 /* The size of `int', as computed by sizeof. */ 916 #define SIZEOF_INT 4 917 918 /* The size of `long', as computed by sizeof. */ 919 #define SIZEOF_LONG 8 920 921 /* The size of `long long', as computed by sizeof. */ 922 #define SIZEOF_LONG_LONG 8 923 924 /* The size of `short', as computed by sizeof. */ 925 #define SIZEOF_SHORT 2 926 927 /* The size of `wchar_t', as computed by sizeof. */ 928 #define SIZEOF_WCHAR_T 4 929 930 /* define to support per-object ACIs */ 931 /* #undef SLAPD_ACI_ENABLED */ 932 933 /* define to support LDAP Async Metadirectory backend */ 934 /* #undef SLAPD_ASYNCMETA */ 935 936 /* define to support cleartext passwords */ 937 /* #undef SLAPD_CLEARTEXT */ 938 939 /* define to support crypt(3) passwords */ 940 /* #undef SLAPD_CRYPT */ 941 942 /* define to support DNS SRV backend */ 943 /* #undef SLAPD_DNSSRV */ 944 945 /* define to support LDAP backend */ 946 /* #undef SLAPD_LDAP */ 947 948 /* define to support MDB backend */ 949 /* #undef SLAPD_MDB */ 950 951 /* define to support LDAP Metadirectory backend */ 952 /* #undef SLAPD_META */ 953 954 /* define to support modules */ 955 /* #undef SLAPD_MODULES */ 956 957 /* dynamically linked module */ 958 #define SLAPD_MOD_DYNAMIC 2 959 960 /* statically linked module */ 961 #define SLAPD_MOD_STATIC 1 962 963 /* define to support NULL backend */ 964 /* #undef SLAPD_NULL */ 965 966 /* define for In-Directory Access Logging overlay */ 967 /* #undef SLAPD_OVER_ACCESSLOG */ 968 969 /* define for Audit Logging overlay */ 970 /* #undef SLAPD_OVER_AUDITLOG */ 971 972 /* define for Automatic Certificate Authority overlay */ 973 /* #undef SLAPD_OVER_AUTOCA */ 974 975 /* define for Collect overlay */ 976 /* #undef SLAPD_OVER_COLLECT */ 977 978 /* define for Attribute Constraint overlay */ 979 /* #undef SLAPD_OVER_CONSTRAINT */ 980 981 /* define for Dynamic Directory Services overlay */ 982 /* #undef SLAPD_OVER_DDS */ 983 984 /* define for Dynamic Directory Services overlay */ 985 /* #undef SLAPD_OVER_DEREF */ 986 987 /* define for Dynamic Group overlay */ 988 /* #undef SLAPD_OVER_DYNGROUP */ 989 990 /* define for Dynamic List overlay */ 991 /* #undef SLAPD_OVER_DYNLIST */ 992 993 /* define for Home Directory Management overlay */ 994 /* #undef SLAPD_OVER_HOMEDIR */ 995 996 /* define for Reverse Group Membership overlay */ 997 /* #undef SLAPD_OVER_MEMBEROF */ 998 999 /* define for Nested Group overlay */ 1000 /* #undef SLAPD_OVER_NESTGROUP */ 1001 1002 /* define for OTP 2-factor Authentication overlay */ 1003 /* #undef SLAPD_OVER_OTP */ 1004 1005 /* define for Password Policy overlay */ 1006 /* #undef SLAPD_OVER_PPOLICY */ 1007 1008 /* define for Proxy Cache overlay */ 1009 /* #undef SLAPD_OVER_PROXYCACHE */ 1010 1011 /* define for Referential Integrity overlay */ 1012 /* #undef SLAPD_OVER_REFINT */ 1013 1014 /* define for Deferred Authentication overlay */ 1015 /* #undef SLAPD_OVER_REMOTEAUTH */ 1016 1017 /* define for Return Code overlay */ 1018 /* #undef SLAPD_OVER_RETCODE */ 1019 1020 /* define for Rewrite/Remap overlay */ 1021 /* #undef SLAPD_OVER_RWM */ 1022 1023 /* define for Sequential Modify overlay */ 1024 /* #undef SLAPD_OVER_SEQMOD */ 1025 1026 /* define for ServerSideSort/VLV overlay */ 1027 /* #undef SLAPD_OVER_SSSVLV */ 1028 1029 /* define for Syncrepl Provider overlay */ 1030 /* #undef SLAPD_OVER_SYNCPROV */ 1031 1032 /* define for Translucent Proxy overlay */ 1033 /* #undef SLAPD_OVER_TRANSLUCENT */ 1034 1035 /* define for Attribute Uniqueness overlay */ 1036 /* #undef SLAPD_OVER_UNIQUE */ 1037 1038 /* define for Value Sorting overlay */ 1039 /* #undef SLAPD_OVER_VALSORT */ 1040 1041 /* define to support PASSWD backend */ 1042 /* #undef SLAPD_PASSWD */ 1043 1044 /* define to support PERL backend */ 1045 /* #undef SLAPD_PERL */ 1046 1047 /* define for Argon2 Password hashing module */ 1048 /* #undef SLAPD_PWMOD_PW_ARGON2 */ 1049 1050 /* define to support relay backend */ 1051 /* #undef SLAPD_RELAY */ 1052 1053 /* define to support reverse lookups */ 1054 /* #undef SLAPD_RLOOKUPS */ 1055 1056 /* define to support SOCK backend */ 1057 /* #undef SLAPD_SOCK */ 1058 1059 /* define to support SASL passwords */ 1060 /* #undef SLAPD_SPASSWD */ 1061 1062 /* define to support SQL backend */ 1063 /* #undef SLAPD_SQL */ 1064 1065 /* define to support WiredTiger backend */ 1066 /* #undef SLAPD_WT */ 1067 1068 /* define to support run-time loadable ACL */ 1069 /* #undef SLAP_DYNACL */ 1070 1071 /* Define to 1 if all of the C90 standard headers exist (not just the ones 1072 required in a freestanding environment). This macro is provided for 1073 backward compatibility; new code need not use it. */ 1074 #define STDC_HEADERS 1 1075 1076 /* Define to 1 if your <sys/time.h> declares `struct tm'. */ 1077 /* #undef TM_IN_SYS_TIME */ 1078 1079 /* set to urandom device */ 1080 #define URANDOM_DEVICE "/dev/urandom" 1081 1082 /* define to use OpenSSL BIGNUM for MP */ 1083 /* #undef USE_MP_BIGNUM */ 1084 1085 /* define to use GMP for MP */ 1086 /* #undef USE_MP_GMP */ 1087 1088 /* define to use 'long' for MP */ 1089 /* #undef USE_MP_LONG */ 1090 1091 /* define to use 'long long' for MP */ 1092 #define USE_MP_LONG_LONG 1 1093 1094 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most 1095 significant byte first (like Motorola and SPARC, unlike Intel). */ 1096 #if defined AC_APPLE_UNIVERSAL_BUILD 1097 # if defined __BIG_ENDIAN__ 1098 # define WORDS_BIGENDIAN 1 1099 # endif 1100 #else 1101 # ifndef WORDS_BIGENDIAN 1102 /* # undef WORDS_BIGENDIAN */ 1103 # endif 1104 #endif 1105 1106 /* Define to the type of arg 3 for `accept'. */ 1107 #define ber_socklen_t socklen_t 1108 1109 /* Define to `char *' if <sys/types.h> does not define. */ 1110 /* #undef caddr_t */ 1111 1112 /* Define to empty if `const' does not conform to ANSI C. */ 1113 /* #undef const */ 1114 1115 /* Define to `int' if <sys/types.h> doesn't define. */ 1116 /* #undef gid_t */ 1117 1118 /* Define to `int' if <sys/types.h> does not define. */ 1119 /* #undef mode_t */ 1120 1121 /* Define to `long' if <sys/types.h> does not define. */ 1122 /* #undef off_t */ 1123 1124 /* Define to `int' if <sys/types.h> does not define. */ 1125 /* #undef pid_t */ 1126 1127 /* Define to `int' if <signal.h> does not define. */ 1128 /* #undef sig_atomic_t */ 1129 1130 /* Define to `unsigned' if <sys/types.h> does not define. */ 1131 /* #undef size_t */ 1132 1133 /* define to snprintf routine */ 1134 #define snprintf _snprintf 1135 1136 /* Define like ber_socklen_t if <sys/socket.h> does not define. */ 1137 /* #undef socklen_t */ 1138 1139 /* Define to `signed int' if <sys/types.h> does not define. */ 1140 /* #undef ssize_t */ 1141 1142 /* Define to `int' if <sys/types.h> doesn't define. */ 1143 /* #undef uid_t */ 1144 1145 /* define as empty if volatile is not supported */ 1146 /* #undef volatile */ 1147 1148 /* define to snprintf routine */ 1149 /* #undef vsnprintf */ 1150 1151 1152 /* begin of portable.h.post */ 1153 1154 #define RETSIGTYPE void 1155 1156 #ifdef _WIN32 1157 /* don't suck in all of the win32 api */ 1158 # define WIN32_LEAN_AND_MEAN 1 1159 #endif 1160 1161 #ifndef LDAP_NEEDS_PROTOTYPES 1162 /* force LDAP_P to always include prototypes */ 1163 #define LDAP_NEEDS_PROTOTYPES 1 1164 #endif 1165 1166 #ifndef LDAP_REL_ENG 1167 #if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL) 1168 #define LDAP_DEVEL 1169 #endif 1170 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST) 1171 #define LDAP_TEST 1172 #endif 1173 #endif 1174 1175 #ifdef HAVE_STDDEF_H 1176 # include <stddef.h> 1177 #endif 1178 1179 #ifdef HAVE_EBCDIC 1180 /* ASCII/EBCDIC converting replacements for stdio funcs 1181 * vsnprintf and snprintf are used too, but they are already 1182 * checked by the configure script 1183 */ 1184 #define fputs ber_pvt_fputs 1185 #define fgets ber_pvt_fgets 1186 #define printf ber_pvt_printf 1187 #define fprintf ber_pvt_fprintf 1188 #define vfprintf ber_pvt_vfprintf 1189 #define vsprintf ber_pvt_vsprintf 1190 #endif 1191 1192 #include "ac/fdset.h" 1193 1194 #include "ldap_cdefs.h" 1195 #include "ldap_features.h" 1196 1197 #include "ac/assert.h" 1198 #include "ac/localize.h" 1199 1200 #endif /* _LDAP_PORTABLE_H */ 1201 /* end of portable.h.post */ 1202 1203