portable-linux.h 31 KB

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