home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ldapsdk.zip / h / portable.h < prev   
C/C++ Source or Header  |  2001-11-12  |  20KB  |  818 lines

  1. /* $OpenLDAP: pkg/ldap/include/portable.nt,v 1.3.2.3 2000/07/04 17:58:49 kurt Exp $ */
  2. /* include/portable.h.nt -- manually updated of MS NT (MS VC5) */
  3. /* synced with portable.h.in 1.24 */
  4. /*
  5.  * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
  6.  * All rights reserved.
  7.  *
  8.  * Redistribution and use in source and binary forms are permitted only
  9.  * as authorized by the OpenLDAP Public License.  A copy of this
  10.  * license is available at http://www.OpenLDAP.org/license.html or
  11.  * in file LICENSE in the top-level directory of the distribution.
  12.  */
  13.  
  14. #ifndef _LDAP_PORTABLE_H
  15. #define _LDAP_PORTABLE_H
  16.  
  17. /* end of preamble */
  18.  
  19. #ifndef __OS2__
  20. /* comment this out if you don't have Cyrus SASL */
  21. #define HAVE_CYRUS_SASL 1
  22. #endif
  23.  
  24. /* --------------------------------------------------- */
  25. /* begin of MSVC5 specific entries */
  26.  
  27. #define OPENLDAP_PACKAGE "OpenLDAP"
  28. #define OPENLDAP_VERSION "-devel"
  29. #define EXEEXT ".exe"
  30.  
  31. /* don't suck in all of the win32 api */
  32. #ifndef __OS2__
  33. #define WIN32_LEAN_AND_MEAN
  34. #endif
  35.  
  36. #ifndef __OS2__
  37. #if defined(_WIN32) && !defined(_WINNT) && !defined(_WIN95)
  38. #define _WINNT
  39. #endif
  40. #endif
  41.  
  42. #ifndef __OS2__
  43. #if defined( _MT ) && defined( _WINNT )
  44. #define HAVE_NT_THREADS 1
  45. #else
  46. #define NO_THREADS 1
  47. #endif
  48. #else
  49. #ifdef __MULTI__
  50. #define HAVE_OS2_THREADS 1
  51. #else
  52. #define NO_THREADS 1
  53. #endif
  54. #endif
  55.  
  56. #ifndef __OS2__
  57. #ifdef HAVE_NT_THREADS
  58. /* enable WINNT specific features only if we have NT THREADS */
  59. #define HAVE_NT_SERVICE_MANAGER 1
  60. #define HAVE_NT_EVENT_LOG 1
  61. #endif
  62. #endif
  63.  
  64. #if defined( _DEBUG ) && !defined( LDAP_DEBUG )
  65. /* #define LDAP_MEMORY_DEBUG 1 */
  66. #define LDAP_DEBUG 1
  67. #endif
  68.  
  69. /* we installed Henry Spencer's REGEX */
  70. #define HAVE_REGEX_H 1
  71.  
  72. #ifndef __OS2__
  73. /* win32 specific stuff */
  74. #define sleep _sleep
  75. #endif
  76.  
  77. #ifndef __OS2__
  78. #define strcasecmp    stricmp
  79. #define strncasecmp    strnicmp
  80. #endif
  81.  
  82. #ifndef __OS2__
  83. #define    snprintf    _snprintf
  84. #define vsnprintf    _vsnprintf
  85. /* #define vsprintf    _vsprintf */
  86. #endif
  87.  
  88. /* define type for caddr_t */
  89. #ifndef __OS2__
  90. typedef char * caddr_t;
  91. #endif
  92.  
  93. /* define type for ssize_t */
  94. #ifndef __OS2__
  95. typedef signed int ssize_t;
  96. #endif
  97.  
  98. /* we have spawnlp instead of fork/execlp */
  99. #define HAVE_SPAWNLP 1
  100.  
  101. #ifndef __OS2__
  102. /* we have winsock2 */
  103. #define HAVE_WINSOCK2 1
  104.  
  105. /* we have winsock */
  106. #define HAVE_WINSOCK 1
  107. #endif
  108.  
  109. /* we have <conio.h> */
  110. #define HAVE_CONIO_H 1
  111.  
  112. /* we have <direct.h> */
  113. #define HAVE_DIRECT_H 1
  114.  
  115. /* we have <io.h> */
  116. #define HAVE_IO_H 1
  117.  
  118. /* we have <process.h> */
  119. #define HAVE_PROCESS_H 1
  120.  
  121. #ifndef __OS2__
  122. /* we have <wincrypt.h> */
  123. #define HAVE_WINCRYPT_H 1
  124. #endif
  125.  
  126. #define MAXPATHLEN _MAX_PATH
  127.  
  128. /* end of MSVC5 specific entries */
  129. /* --------------------------------------------------- */
  130.  
  131. /* Define if on AIX 3.
  132.    System headers sometimes define this.
  133.    We just want to avoid a redefinition error message.  */
  134. #ifndef _ALL_SOURCE
  135. /* #undef _ALL_SOURCE */
  136. #endif
  137.  
  138. /* Define to empty if the keyword does not work.  */
  139. /* #undef const */
  140.  
  141. /* Define to the type of elements in the array set by `getgroups'.
  142.    Usually this is either `int' or `gid_t'.  */
  143. /* #undef GETGROUPS_T */
  144.  
  145. /* Define to `int' if <sys/types.h> doesn't define.  */
  146. #define gid_t long
  147.  
  148. /* Define if you don't have vprintf but do have _doprnt.  */
  149. /* #undef HAVE_DOPRNT */
  150.  
  151. /* Define if your struct stat has st_blksize.  */
  152. /* #undef HAVE_ST_BLKSIZE */
  153.  
  154. /* Define if you have the strftime function.  */
  155. #define HAVE_STRFTIME 1
  156.  
  157. /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
  158. /* #undef HAVE_SYS_WAIT_H */
  159.  
  160. /* Define if you have the vprintf function.  */
  161. #define HAVE_VPRINTF 1
  162.  
  163. /* Define if on MINIX.  */
  164. /* #undef _MINIX */
  165.  
  166. /* Define to `int' if <sys/types.h> doesn't define.  */
  167. #define mode_t int
  168.  
  169. /* Define to `long' if <sys/types.h> doesn't define.  */
  170. /* #undef off_t */
  171.  
  172. /* Define to `int' if <sys/types.h> doesn't define.  */
  173. #ifndef __OS2__
  174. #define pid_t int
  175. #endif
  176.  
  177. /* Define if the system does not provide POSIX.1 features except
  178.    with this defined.  */
  179. /* #undef _POSIX_1_SOURCE */
  180.  
  181. /* Define if you need to in order for stat and other things to work.  */
  182. /* #undef _POSIX_SOURCE */
  183.  
  184. /* Define as the return type of signal handlers (int or void).  */
  185. #define RETSIGTYPE void
  186.  
  187. /* Define to `unsigned' if <sys/types.h> doesn't define.  */
  188. /* #undef size_t */
  189.  
  190. /* Define if you have the ANSI C header files.  */
  191. #define STDC_HEADERS 1
  192.  
  193. /* Define if you can safely include both <sys/time.h> and <time.h>.  */
  194. /* #undef TIME_WITH_SYS_TIME */
  195.  
  196. /* Define if your <sys/time.h> declares struct tm.  */
  197. /* #undef TM_IN_SYS_TIME */
  198.  
  199. /* Define to `int' if <sys/types.h> doesn't define.  */
  200. #define uid_t long
  201.  
  202. /* Define if your processor stores words with the most significant
  203.    byte first (like Motorola and SPARC, unlike Intel and VAX).  */
  204. /* #undef WORDS_BIGENDIAN */
  205.  
  206. /* define this if needed to get reentrant functions */
  207. #ifndef REENTRANT
  208. /* #undef REENTRANT */
  209. #endif
  210. #ifndef _REENTRANT
  211. /* #undef _REENTRANT */
  212. #endif
  213.  
  214. /* define this if needed to get threadsafe functions */
  215. #ifndef THREADSAFE
  216. /* #undef THREADSAFE */
  217. #endif
  218. #ifndef _THREADSAFE
  219. /* #undef _THREADSAFE */
  220. #endif
  221. #ifndef THREAD_SAFE
  222. /* #undef THREAD_SAFE */
  223. #endif
  224. #ifndef _THREAD_SAFE
  225. /* #undef _THREAD_SAFE */
  226. #endif
  227.  
  228. /* define this if toupper() requires tolower() */
  229. #define C_UPPER_LOWER 1
  230.  
  231. /* define this to the number of arguments ctime_r() expects */
  232. /* #undef CTIME_R_NARGS */
  233.  
  234. /* define this if sys_errlist is not defined in stdio.h or errno.h */
  235. /* #undef DECL_SYS_ERRLIST */
  236.  
  237. /* define this if sys_errlist is available */
  238. #ifndef __OS2__
  239. #define HAVE_SYS_ERRLIST 1 
  240. #endif
  241.  
  242. /* define if you have berkeley db */
  243. #define HAVE_BERKELEY_DB 1
  244.  
  245. /* define if you have crypt */
  246. /* #undef HAVE_CRYPT */
  247.  
  248. /* define if you have GDBM */
  249. /* #undef HAVE_GDBM */
  250.  
  251. /* define if you have NDBM */
  252. /* #undef HAVE_NDBM */
  253.  
  254. /* define if you have res_search() */
  255. #ifdef __notdef__
  256. /* see second res_search define */
  257. /* #undef HAVE_RES_SEARCH */
  258. #endif
  259.  
  260. /* define if you have sched_yield() */
  261. #ifdef __notdef__
  262. /* see second sched_yield define */
  263. /* #undef HAVE_SCHED_YIELD */
  264. #endif
  265.  
  266. /* define if you have setproctitle() */
  267. /* #undef HAVE_SETPROCTITLE */
  268.  
  269. /* define this for connectionless LDAP support */
  270. /* #undef LDAP_CONNECTIONLESS */
  271.  
  272. /* define this to add debugging code */
  273. /* #undef LDAP_DEBUG */
  274.  
  275. /* define this to remove -lldap cache support */
  276. /* #undef LDAP_NOCACHE */
  277.  
  278. /* define this for LDAP process title support */
  279. /* #undef LDAP_PROCTITLE */
  280.  
  281. /* define this for LDAP User Interface support */
  282. /* #undef LDAP_LIBUI */
  283.  
  284. /* define this to add syslog code */
  285. /* #undef LDAP_SYSLOG */
  286.  
  287. /* define this to use DBBTREE w/ LDBM backend */
  288. #define LDBM_USE_DBBTREE 1
  289.  
  290. /* define this to use DBHASH w/ LDBM backend */
  291. /* #undef LDBM_USE_DBHASH */
  292.  
  293. /* define this for ACL Group support */
  294. #define SLAPD_ACLGROUPS 1
  295.  
  296. /* define this for ClearText password support */
  297. #define SLAPD_CLEARTEXT 1
  298.  
  299. /* define this for crypt(3) password support */
  300. /* #undef SLAPD_CRYPT */
  301.  
  302. /* define this to use SLAPD LDAP backend */
  303. /* #undef SLAPD_LDAP */
  304.  
  305. /* define this to use SLAPD LDBM backend */
  306. #define SLAPD_LDBM 1
  307.  
  308. /* define this to use SLAPD SQL backend */
  309. /* #undef SLAPD_SQL */
  310.  
  311. /* define this to use SLAPD passwd backend */
  312. /* #undef SLAPD_PASSWD */
  313.  
  314. /* define this to use SLAPD perl backend */
  315. /* #undef SLAPD_PERL */
  316.  
  317. /* define this for phonetic support */
  318. /* #undef SLAPD_PHONETIC */
  319.  
  320. /* define this for Reverse Lookup support */
  321. #define SLAPD_RLOOKUPS 1
  322.  
  323. /* define this for per-object ACIs */
  324. /* #undef SLAPD_ACI_ENABLED */
  325.  
  326. /* define this to use SLAPD shell backend */
  327. /* #undef SLAPD_SHELL */
  328.  
  329. /* define this to be empty if your compiler doesn't support volatile */
  330. /* #undef volatile */
  331.  
  332. /* define this if sig_atomic_t isn't defined in signal.h */
  333. /* #undef sig_atomic_t */
  334.  
  335. /* define this if socklen_t isn't defined in sys/types.h or sys/socket.h */
  336. #define socklen_t int
  337.  
  338. /* These are defined in ldap_features.h */
  339. /*
  340.  LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
  341.  LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
  342.  LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
  343.  LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
  344. */
  345.  
  346. /* The number of bytes in a int.  */ 
  347. #define SIZEOF_INT 4
  348.  
  349. /* The number of bytes in a long.  */ 
  350. #define SIZEOF_LONG 4
  351.   
  352. /* The number of bytes in a short.  */
  353. #define SIZEOF_SHORT 2
  354.  
  355. /* Define if you have the bcopy function.  */
  356. /* #undef HAVE_BCOPY */
  357.  
  358. /* Define if you have the ctime_r function.  */
  359. /* #undef HAVE_CTIME_R */
  360.  
  361. /* Define if you have the flock function.  */
  362. /* #undef HAVE_FLOCK */
  363.  
  364. /* Define if you have the getdtablesize function.  */
  365. /* #undef HAVE_GETDTABLESIZE */
  366.  
  367. /* Define if you have the gethostbyaddr_r function.  */
  368. /* #undef HAVE_GETHOSTBYADDR_R */
  369.  
  370. /* Define if you have the gethostbyname_r function.  */
  371. /* #undef HAVE_GETHOSTBYNAME_R */
  372.  
  373. /* Define if you have the gethostname function.  */
  374. #define HAVE_GETHOSTNAME 1
  375.  
  376. /* define if you have the getopt function */
  377. /* #undef HAVE_GETOPT */
  378.  
  379. /* Define if you have the getpwuid function.  */
  380. /* #undef HAVE_GETPWUID */
  381.  
  382. /* Define if you have the gettimeofday function.  */
  383. /* #undef HAVE_GETTIMEOFDAY */
  384.  
  385. /* Define if you have the lockf function.  */
  386. /* #undef HAVE_LOCKF */
  387.  
  388. /* Define if you have the memcpy function.  */
  389. #define HAVE_MEMCPY 1
  390.  
  391. /* Define if you have the memmove function.  */
  392. #define HAVE_MEMMOVE 1
  393.  
  394. /* Define if you have the mkstemp function.  */
  395. /* #undef HAVE_MKSTEMP */
  396.  
  397. /* Define if you have the pthread_getconcurrency function.  */
  398. /* #undef HAVE_PTHREAD_GETCONCURRENCY */
  399.  
  400. /* Define if you have the pthread_kill function.  */
  401. /* #undef HAVE_PTHREAD_KILL */
  402.  
  403. /* Define if you have the pthread_setconcurrency function.  */
  404. /* #undef HAVE_PTHREAD_SETCONCURRENCY */
  405.  
  406. /* Define if you have the pthread_yield function.  */
  407. /* #undef HAVE_PTHREAD_YIELD */
  408.  
  409. /* Define if you have the res_search function.  */
  410. /* #undef HAVE_RES_SEARCH */
  411.  
  412. /* Define if you have the sched_yield function.  */
  413. /* #undef HAVE_SCHED_YIELD */
  414.  
  415. /* Define if you have the select function.  */
  416. #define HAVE_SELECT 1
  417.  
  418. /* Define if you have the setpwfile function.  */
  419. /* #undef HAVE_SETPWFILE */
  420.  
  421. /* Define if you have the setsid function.  */
  422. /* #undef HAVE_SETSID */
  423.  
  424. /* Define if you have the signal function.  */
  425. #define HAVE_SIGNAL 1
  426.  
  427. /* Define if you have the sigset function.  */
  428. /* #undef HAVE_SIGSET */
  429.  
  430. /* Define if you have the socket function.  */
  431. #define HAVE_SOCKET 1
  432.  
  433. /* Define if you have the snprintf function.  */
  434. #define HAVE_SNPRINTF 1
  435.  
  436. /* Define if you have the strdup function.  */
  437. #define HAVE_STRDUP 1
  438.  
  439. /* Define if you have the strerror function.  */
  440. #define HAVE_STRERROR 1
  441.  
  442. /* Define if you have the strpbrk function.  */
  443. #define HAVE_STRPBRK 1
  444.  
  445. /* Define if you have the strrchr function.  */
  446. #define HAVE_STRRCHR 1
  447.  
  448. /* Define if you have the strsep function.  */
  449. /* #undef HAVE_STRSEP */
  450.  
  451. /* Define if you have the strspn function.  */
  452. #define HAVE_STRSPN 1
  453.  
  454. /* Define if you have the strstr function.  */
  455. #define HAVE_STRSTR 1
  456.  
  457. /* Define if you have the strtok function.  */
  458. #define HAVE_STRTOK 1
  459.  
  460. /* Define if you have the strtok_r function.  */
  461. /* #undef HAVE_STRTOK_R */
  462.  
  463. /* Define if you have the strtol function.  */
  464. #define HAVE_STRTOL 1
  465.  
  466. /* Define if you have the strtoul function.  */
  467. #define HAVE_STRTOUL 1
  468.  
  469. /* Define if you have the sysconf function.  */
  470. /* #undef HAVE_SYSCONF */
  471.  
  472. /* Define if you have the tempnam function.  */
  473. #define HAVE_TEMPNAM 1
  474.  
  475. /* Define if you have the thr_getconcurrency function.  */
  476. /* #undef HAVE_THR_GETCONCURRENCY */
  477.  
  478. /* Define if you have the thr_setconcurrency function.  */
  479. /* #undef HAVE_THR_SETCONCURRENCY */
  480.  
  481. /* Define if you have the thr_yield function.  */
  482. /* #undef HAVE_THR_YIELD */
  483.  
  484. /* Define if you have the vsnprintf function.  */
  485. #ifndef __OS2__
  486. #define HAVE_VSNPRINTF 1
  487. #endif
  488.  
  489. /* Define if you have the vsprintf function.  */
  490. #define HAVE_VSPRINTF 1
  491.  
  492. /* Define if you have the waitpid function.  */
  493. /* #undef HAVE_WAITPID 1 */
  494.  
  495. /* Define if you have the <arpa/nameser.h> header file.  */
  496. /* #undef HAVE_ARPA_NAMESER_H */
  497.  
  498. /* Define if you have the <crypt.h> header file.  */
  499. /* #undef HAVE_CRYPT_H */
  500.  
  501. /* Define if you have the <db.h> header file.  */
  502. #define HAVE_DB_H 1
  503.  
  504. /* Define if you have the <db_185.h> header file.  */
  505. /* #undef HAVE_DB_185_H */
  506.  
  507. /* Define if you have the <des.h> header file.  */
  508. /* #undef HAVE_DES_H */
  509.  
  510. /* Define if you have the <dirent.h> header file.  */
  511. /* #undef HAVE_DIRENT_H */
  512.  
  513. /* Define if you have the <dmalloc.h> header file.  */
  514. /* #undef HAVE_DMALLOC_H */
  515.  
  516. /* Define if you have the <errno.h> header file.  */
  517. #ifndef __OS2__
  518. #define HAVE_ERRNO_H 1
  519. #endif
  520.  
  521. /* Define if you have the <fcntl.h> header file.  */
  522. #define HAVE_FCNTL_H 1
  523.  
  524. /* Define if you have the <filio.h> header file.  */
  525. /* #undef HAVE_FILIO_H */
  526.  
  527. /* Define if you have the <gdbm.h> header file.  */
  528. /* #undef HAVE_GDBM_H */
  529.  
  530. /* Define if you have the <getopt.h> header file.  */
  531. /* #undef HAVE_GETOPT_H */
  532.  
  533. /* Define if you have the <kerberosIV/des.h> header file.  */
  534. /* #undef HAVE_KERBEROSIV_DES_H */
  535.  
  536. /* Define if you have the <kerberosIV/krb.h> header file.  */
  537. /* #undef HAVE_KERBEROSIV_KRB_H */
  538.  
  539. /* Define if you have the <krb.h> header file.  */
  540. /* #undef HAVE_KRB_H */
  541.  
  542. /* Define if you have the <libutil.h> header file.  */
  543. /* #undef HAVE_LIBUTIL_H */
  544.  
  545. /* Define if you have the <limits.h> header file.  */
  546. #define HAVE_LIMITS_H 1
  547.  
  548. /* Define if you have the <lwp/lwp.h> header file.  */
  549. /* #undef HAVE_LWP_LWP_H */
  550.  
  551. /* Define if you have the <mach/cthreads.h> header file.  */
  552. /* #undef HAVE_MACH_CTHREADS_H */
  553.  
  554. /* Define if you have the <malloc.h> header file.  */
  555. #define HAVE_MALLOC_H 1
  556.  
  557. /* Define if you have the <memory.h> header file.  */
  558. #define HAVE_MEMORY_H 1
  559.  
  560. /* Define if you have the <ncurses.h> header file.  */
  561. /* #undef HAVE_NCURSES_H */
  562.  
  563. /* Define if you have the <ndbm.h> header file.  */
  564. /* #undef HAVE_NDBM_H */
  565.  
  566. /* Define if you have the <ndir.h> header file.  */
  567. /* #undef HAVE_NDIR_H */
  568.  
  569. /* Define if you have the <psap.h> header file.  */
  570. /* #undef HAVE_PSAP_H */
  571.  
  572. /* Define if you have the <pthread.h> header file.  */
  573. /* #undef HAVE_PTHREAD_H */
  574.  
  575. /* Define if you have the <pwd.h> header file.  */
  576. /* #undef HAVE_PWD_H */
  577.  
  578. /* Define if you have the <regex.h> header file.  */
  579. /* #undef HAVE_REGEX_H */
  580.  
  581. /* Define if you have the <resolv.h> header file.  */
  582. /* #undef HAVE_RESOLV_H */
  583.  
  584. /* Define if you have the <sched.h> header file.  */
  585. /* #undef HAVE_SCHED_H */
  586.  
  587. /* Define if you have the <sgtty.h> header file.  */
  588. /* #undef HAVE_SGTTY_H */
  589.  
  590. /* Define if you have the <stdarg.h> header file.  */
  591. #define HAVE_STDARG_H 1
  592.  
  593. /* Define if you have the <stddef.h> header file.  */
  594. #define HAVE_STDDEF_H 1
  595.  
  596. /* Define if you have the <string.h> header file.  */
  597. #define HAVE_STRING_H 1
  598.  
  599. /* Define if you have the <strings.h> header file.  */
  600. /* #undef HAVE_STRINGS_H */
  601.  
  602. /* Define if you have the <synch.h> header file.  */
  603. /* #undef HAVE_SYNCH_H */
  604.  
  605. /* Define if you have the <sys/dir.h> header file.  */
  606. /* #undef HAVE_SYS_DIR_H */
  607.  
  608. /* Define if you have the <sys/errno.h> header file.  */
  609. /* #undef HAVE_SYS_ERRNO_H */
  610.  
  611. /* Define if you have the <sys/file.h> header file.  */
  612. /* #undef HAVE_SYS_FILE_H */
  613.  
  614. /* Define if you have the <sys/filio.h> header file.  */
  615. /* #undef HAVE_SYS_FILIO_H */
  616.  
  617. /* Define if you have the <sys/ioctl.h> header file.  */
  618. /* #undef HAVE_SYS_IOCTL_H */
  619.  
  620. /* Define if you have the <sys/ndir.h> header file.  */
  621. /* #undef HAVE_SYS_NDIR_H */
  622.  
  623. /* Define if you have the <sys/param.h> header file.  */
  624. /* #undef HAVE_SYS_PARAM_H */
  625.  
  626. /* Define if you have the <sys/resource.h> header file.  */
  627. /* #undef HAVE_SYS_RESOURCE_H */
  628.  
  629. /* Define if you have the <sys/socket.h> header file.  */
  630. /* #undef HAVE_SYS_SOCKET_H */
  631.  
  632. /* Define if you have the <sys/syslog.h> header file.  */
  633. /* #undef HAVE_SYS_SYSLOG_H */
  634.  
  635. /* Define if you have the <sys/time.h> header file.  */
  636. /* #undef HAVE_SYS_TIME_H */
  637.  
  638. /* Define if you have the <sys/types.h> header file.  */
  639. #define HAVE_SYS_TYPES_H 1
  640.  
  641. /* Define if you have the <sysexits.h> header file.  */
  642. /* #undef HAVE_SYSEXITS_H */
  643.  
  644. /* Define if you have the <syslog.h> header file.  */
  645. /* #undef HAVE_SYSLOG_H */
  646.  
  647. /* Define if you have the <tcpd.h> header file.  */
  648. /* #undef HAVE_TCPD_H */
  649.  
  650. /* Define if you have the <termcap.h> header file.  */
  651. /* #undef HAVE_TERMCAP_H */
  652.  
  653. /* Define if you have the <termios.h> header file.  */
  654. /* #undef HAVE_TERMIOS_H */
  655.  
  656. /* Define if you have the <thread.h> header file.  */
  657. /* #undef HAVE_THREAD_H */
  658.  
  659. /* Define if you have the <unistd.h> header file.  */
  660. /* #undef HAVE_UNISTD_H */
  661.  
  662. /* Define if you have the V3 library (-lV3).  */
  663. /* #undef HAVE_LIBV3 */
  664.  
  665. /* Define if you have the bind library (-lbind).  */
  666. /* #undef HAVE_LIBBIND */
  667.  
  668. /* Define if you have the dmalloc library (-ldmalloc).  */
  669. /* #undef HAVE_LIBDMALLOC */
  670.  
  671. /* Define if you have the gen library (-lgen).  */
  672. /* #undef HAVE_LIBGEN */
  673.  
  674. /* Define if you have the inet library (-linet).  */
  675. /* #undef HAVE_LIBINET */
  676.  
  677. /* Define if you have the net library (-lnet).  */
  678. /* #undef HAVE_LIBNET */
  679.  
  680. /* Define if you have the nsl library (-lnsl).  */
  681. /* #undef HAVE_LIBNSL */
  682.  
  683. /* Define if you have the nsl_s library (-lnsl_s).  */
  684. /* #undef HAVE_LIBNSL_S */
  685.  
  686. /* Define if you have the resolv library (-lresolv).  */
  687. /* #undef HAVE_LIBRESOLV */
  688.  
  689. /* Define if you have the socket library (-lsocket).  */
  690. /* #undef HAVE_LIBSOCKET */
  691.  
  692. /* define if you have -lxtpp */
  693. /* #undef HAVE_XTPP */
  694.  
  695. /* define if you have -ldsap */
  696. /* #undef HAVE_DSAP */
  697.  
  698. /* define if you have -lisode */
  699. /* #undef HAVE_ISODE */
  700.  
  701. /* define if you have -lpp */
  702. /* #undef HAVE_PP */
  703.  
  704. /* define if you have Kerberos des_debug */
  705. /* #undef HAVE_DES_DEBUG */
  706.  
  707. /* define if you have Kerberos */
  708. /* #undef HAVE_KERBEROS */
  709.  
  710. /* define if pthreads API compatible with final spec */
  711. /* #undef HAVE_PTHREADS_FINAL */
  712.  
  713. /* define if pthreads API compatible with draft4 spec */
  714. /* #undef HAVE_PTHREADS_D4 */
  715.  
  716. /* define if you have LinuxThreads */
  717. /* #undef HAVE_LINUX_THREADS */
  718.  
  719. /* define if you have POSIX Threads */
  720. /* #undef HAVE_PTHREADS */
  721.  
  722. /* define if you have pthread_detach function */
  723. /* #undef HAVE_PTHREAD_DETACH */
  724.  
  725. /* define if you have Mach Cthreads */
  726. /* #undef HAVE_MACH_CTHREADS */
  727.  
  728. /* if you have Solaris LWP (thr) package */
  729. /* #undef HAVE_THR */
  730.  
  731. /* if you have SunOS LWP package */
  732. /* #undef HAVE_LWP */
  733.  
  734. /* define if select implicitly yields */
  735. #define HAVE_YIELDING_SELECT 1
  736.  
  737. /* define if you have (or want) no threads */
  738. /* #undef NO_THREADS */
  739.  
  740. /* define if you have -lwrap */
  741. /* #undef HAVE_TCPD */
  742.  
  743. /* define if you have -ltermcap */
  744. /* #undef HAVE_TERMCAP */
  745.  
  746. /* define if you have -lncurses */
  747. /* #undef HAVE_NCURSES */
  748.  
  749. /* define if you have no termcap support */
  750. #define NO_TERMCAP 1
  751.  
  752. /* Define if TIOCGWINSZ requires sys/ioctl.h */
  753. /* #undef GWINSZ_IN_SYS_IOCTL */
  754.  
  755. /* define if you have POSIX termios */
  756. /* #undef HAVE_POSIX_TERMIOS */
  757.  
  758. /* Define if system has ptrdiff_t type */
  759. #define HAVE_PTRDIFF_T 1
  760.  
  761. /* define if cross compiling */
  762. /* #undef CROSS_COMPILING */
  763.  
  764. /* begin of postamble */
  765.  
  766. #ifdef __OS2__
  767. #include <errno.h>
  768. #include <nerrno.h>
  769. #include <time.h>
  770. #include <types.h>
  771. #include <netinet/in.h>
  772. #include <netdb.h>
  773. #include <sys/ioctl.h>
  774. #include <sys/types.h>
  775. #include <sys/time.h>
  776. #ifdef TCPV40HDRS
  777. #define BSD_SELECT
  778. #include <sys/select.h>
  779. #endif
  780. #include <sys/socket.h>
  781. #ifndef TCPV40HDRS
  782. #include <arpa/inet.h>
  783. #include <unistd.h>
  784. #endif
  785. #define tcp_close( s )        soclose( s )
  786. #define tcp_read( s, buf, len )    recv( s, buf, len, 0 )
  787. #define tcp_write( s, buf, len )    send( s, buf, len, 0 )
  788. #ifndef strcasecmp
  789. #define strcasecmp    stricmp
  790. #endif
  791. #ifndef strncasecmp
  792. #define strncasecmp    strnicmp
  793. #endif
  794. #endif
  795.  
  796. #ifndef LDAP_NEEDS_PROTOTYPES
  797. /* force LDAP_P to always include prototypes */
  798. #define LDAP_NEEDS_PROTOTYPES 1 
  799. #endif
  800.  
  801. #ifdef HAVE_STDDEF_H
  802. #    include <stddef.h>
  803. #endif
  804.  
  805. #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
  806. #define LDAP_TEST
  807. #endif
  808. #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
  809. #define LDAP_DEBUG
  810. #endif
  811.  
  812. #include "ldap_cdefs.h"
  813. #include "ldap_features.h"
  814.  
  815. #include <ac/assert.h>
  816.  
  817. #endif /* _LDAP_PORTABLE_H */
  818.