config.h.in 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. /************************************************************************
  2. *
  3. * NRPE Common Header File
  4. * Copyright (c) 1999-2006 Ethan Galstad (nagios@nagios.org)
  5. * Last Modified: 12-11-2006
  6. *
  7. * License:
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22. ************************************************************************/
  23. #ifndef _CONFIG_H
  24. #define _CONFIG_H
  25. #include <stdio.h>
  26. #include <stdlib.h>
  27. #define DEFAULT_SERVER_PORT @nrpe_port@ /* default port to use */
  28. #undef ENABLE_COMMAND_ARGUMENTS
  29. #undef socklen_t
  30. #undef HAVE_GETOPT_LONG
  31. #undef HAVE_LIBWRAP
  32. #undef STDC_HEADERS
  33. #undef HAVE_STRDUP
  34. #undef HAVE_STRSTR
  35. #undef HAVE_STRTOUL
  36. #undef HAVE_INITGROUPS
  37. #undef HAVE_CLOSESOCKET
  38. #undef SIZEOF_INT
  39. #undef SIZEOF_SHORT
  40. #undef SIZEOF_LONG
  41. /* stupid stuff for u_int32_t */
  42. #undef U_INT32_T_IS_USHORT
  43. #undef U_INT32_T_IS_UINT
  44. #undef U_INT32_T_IS_ULONG
  45. #undef U_INT32_T_IS_UINT32_T
  46. #ifdef U_INT32_T_IS_USHORT
  47. typedef unsigned short u_int32_t;
  48. #endif
  49. #ifdef U_INT32_T_IS_ULONG
  50. typedef unsigned long u_int32_t;
  51. #endif
  52. #ifdef U_INT32_T_IS_UINT
  53. typedef unsigned int u_int32_t;
  54. #endif
  55. #ifdef U_INT32_T_IS_UINT32_t
  56. typedef uint32_t u_int32_t;
  57. #endif
  58. /* stupid stuff for int32_t */
  59. #undef INT32_T_IS_SHORT
  60. #undef INT32_T_IS_INT
  61. #undef INT32_T_IS_LONG
  62. #ifdef INT32_T_IS_USHORT
  63. typedef short int32_t;
  64. #endif
  65. #ifdef INT32_T_IS_ULONG
  66. typedef long int32_t;
  67. #endif
  68. #ifdef INT32_T_IS_UINT
  69. typedef int int32_t;
  70. #endif
  71. #define SOCKET_SIZE_TYPE ""
  72. #define GETGROUPS_T ""
  73. #define RETSIGTYPE ""
  74. #undef HAVE_GETOPT_H
  75. #ifdef HAVE_GETOPT_H
  76. #include <getopt.h>
  77. #endif
  78. #undef HAVE_STRINGS_H
  79. #undef HAVE_STRING_H
  80. #ifdef HAVE_STRINGS_H
  81. #include <strings.h>
  82. #endif
  83. #ifdef HAVE_STRINGS_H
  84. #include <string.h>
  85. #endif
  86. #undef HAVE_UNISTD_H
  87. #ifdef HAVE_UNISTD_H
  88. #include <unistd.h>
  89. #endif
  90. #undef HAVE_SIGNAL_H
  91. #ifdef HAVE_SIGNAL_H
  92. #include <signal.h>
  93. #endif
  94. #undef HAVE_SYSLOG_H
  95. #ifdef HAVE_SYSLOG_H
  96. #include <syslog.h>
  97. #endif
  98. #undef HAVE_SYS_STAT_H
  99. #ifdef HAVE_SYS_STAT_H
  100. #include <sys/stat.h>
  101. #endif
  102. #undef HAVE_FCNTL_H
  103. #ifdef HAVE_FCNTL_H
  104. #include <fcntl.h>
  105. #endif
  106. #undef HAVE_SYS_TYPES_H
  107. #ifdef HAVE_SYS_TYPES_H
  108. #include <sys/types.h>
  109. #endif
  110. #undef HAVE_SYS_WAIT_H
  111. #ifdef HAVE_SYS_WAIT_H
  112. #include <sys/wait.h>
  113. #endif
  114. #ifndef WEXITSTATUS
  115. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  116. #endif
  117. #ifndef WIFEXITED
  118. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  119. #endif
  120. #undef HAVE_ERRNO_H
  121. #ifdef HAVE_ERRNO_H
  122. #include <errno.h>
  123. #endif
  124. /* needed for the time_t structures we use later... */
  125. #undef TIME_WITH_SYS_TIME
  126. #undef HAVE_SYS_TIME_H
  127. #if TIME_WITH_SYS_TIME
  128. # include <sys/time.h>
  129. # include <time.h>
  130. #else
  131. # if HAVE_SYS_TIME_H
  132. # include <sys/time.h>
  133. # else
  134. # include <time.h>
  135. # endif
  136. #endif
  137. #undef HAVE_SYS_SOCKET_H
  138. #ifdef HAVE_SYS_SOCKET_H
  139. #include <sys/socket.h>
  140. #endif
  141. /* Define to 'int' if <sys/socket.h> does not define */
  142. #undef socklen_t
  143. #undef HAVE_SOCKET_H
  144. #ifdef HAVE_SOCKET_H
  145. #include <socket.h>
  146. #endif
  147. #undef HAVE_TCPD_H
  148. #ifdef HAVE_TCPD_H
  149. #include <tcpd.h>
  150. #endif
  151. #undef HAVE_NETINET_IN_H
  152. #ifdef HAVE_NETINET_IN_H
  153. #include <netinet/in.h>
  154. #endif
  155. #undef HAVE_ARPA_INET_H
  156. #ifdef HAVE_ARPA_INET_H
  157. #include <arpa/inet.h>
  158. #endif
  159. #undef HAVE_NETDB_H
  160. #ifdef HAVE_NETDB_H
  161. #include <netdb.h>
  162. #endif
  163. #undef HAVE_CTYPE_H
  164. #ifdef HAVE_CTYPE_H
  165. #include <ctype.h>
  166. #endif
  167. #undef HAVE_PWD_H
  168. #ifdef HAVE_PWD_H
  169. #include <pwd.h>
  170. #endif
  171. #undef HAVE_GRP_H
  172. #ifdef HAVE_GRP_H
  173. #include <grp.h>
  174. #endif
  175. #undef HAVE_DIRENT_H
  176. #ifdef HAVE_DIRENT_H
  177. #include <dirent.h>
  178. #endif
  179. #undef HAVE_SSL
  180. #ifdef HAVE_SSL
  181. #include <rsa.h>
  182. #include <crypto.h>
  183. #include <dh.h>
  184. #include <pem.h>
  185. #include <ssl.h>
  186. #include <err.h>
  187. #include <rand.h>
  188. #endif
  189. #undef HAVE_KRB5_H
  190. #ifdef HAVE_KRB5_H
  191. #include <krb5.h>
  192. #endif
  193. #undef HAVE_INTTYPES_H
  194. #undef HAVE_STDINT_H
  195. #ifdef HAVE_INTTYPES_H
  196. #include <inttypes.h>
  197. #else
  198. #ifdef HAVE_STDINT_H
  199. #include <stdint.h>
  200. #endif
  201. #endif
  202. #endif