config.h.in 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. /************************************************************************
  2. *
  3. * NRPE Common Header File
  4. * Copyright (c) 1999-2003 Ethan Galstad (nagios@nagios.org)
  5. * Last Modified: 06-19-2003
  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 STDC_HEADERS
  30. #undef HAVE_STRDUP
  31. #undef HAVE_STRSTR
  32. #undef HAVE_STRTOUL
  33. #undef HAVE_INITGROUPS
  34. #undef SIZEOF_INT
  35. #undef SIZEOF_SHORT
  36. #undef SIZEOF_LONG
  37. /* stupid stuff for u_int32_t */
  38. #undef U_INT32_T_IS_USHORT
  39. #undef U_INT32_T_IS_UINT
  40. #undef U_INT32_T_IS_ULONG
  41. #undef U_INT32_T_IS_UINT32_T
  42. #ifdef U_INT32_T_IS_USHORT
  43. typedef unsigned short u_int32_t;
  44. #endif
  45. #ifdef U_INT32_T_IS_ULONG
  46. typedef unsigned long u_int32_t;
  47. #endif
  48. #ifdef U_INT32_T_IS_UINT
  49. typedef unsigned int u_int32_t;
  50. #endif
  51. #ifdef U_INT32_T_IS_UINT32_t
  52. typedef uint32_t u_int32_t;
  53. #endif
  54. /* stupid stuff for int32_t */
  55. #undef INT32_T_IS_SHORT
  56. #undef INT32_T_IS_INT
  57. #undef INT32_T_IS_LONG
  58. #ifdef INT32_T_IS_USHORT
  59. typedef short int32_t;
  60. #endif
  61. #ifdef INT32_T_IS_ULONG
  62. typedef long int32_t;
  63. #endif
  64. #ifdef INT32_T_IS_UINT
  65. typedef int int32_t;
  66. #endif
  67. #define SOCKET_SIZE_TYPE ""
  68. #define GETGROUPS_T ""
  69. #define RETSIGTYPE ""
  70. #undef HAVE_GETOPT_H
  71. #ifdef HAVE_GETOPT_H
  72. #include <getopt.h>
  73. #endif
  74. #undef HAVE_STRINGS_H
  75. #undef HAVE_STRING_H
  76. #ifdef HAVE_STRINGS_H
  77. #include <strings.h>
  78. #endif
  79. #ifdef HAVE_STRINGS_H
  80. #include <string.h>
  81. #endif
  82. #undef HAVE_UNISTD_H
  83. #ifdef HAVE_UNISTD_H
  84. #include <unistd.h>
  85. #endif
  86. #undef HAVE_SIGNAL_H
  87. #ifdef HAVE_SIGNAL_H
  88. #include <signal.h>
  89. #endif
  90. #undef HAVE_SYSLOG_H
  91. #ifdef HAVE_SYSLOG_H
  92. #include <syslog.h>
  93. #endif
  94. #undef HAVE_SYS_STAT_H
  95. #ifdef HAVE_SYS_STAT_H
  96. #include <sys/stat.h>
  97. #endif
  98. #undef HAVE_FCNTL_H
  99. #ifdef HAVE_FCNTL_H
  100. #include <fcntl.h>
  101. #endif
  102. #undef HAVE_SYS_TYPES_H
  103. #ifdef HAVE_SYS_TYPES_H
  104. #include <sys/types.h>
  105. #endif
  106. #undef HAVE_SYS_WAIT_H
  107. #ifdef HAVE_SYS_WAIT_H
  108. #include <sys/wait.h>
  109. #endif
  110. #ifndef WEXITSTATUS
  111. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  112. #endif
  113. #ifndef WIFEXITED
  114. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  115. #endif
  116. #undef HAVE_ERRNO_H
  117. #ifdef HAVE_ERRNO_H
  118. #include <errno.h>
  119. #endif
  120. /* needed for the time_t structures we use later... */
  121. #undef TIME_WITH_SYS_TIME
  122. #undef HAVE_SYS_TIME_H
  123. #if TIME_WITH_SYS_TIME
  124. # include <sys/time.h>
  125. # include <time.h>
  126. #else
  127. # if HAVE_SYS_TIME_H
  128. # include <sys/time.h>
  129. # else
  130. # include <time.h>
  131. # endif
  132. #endif
  133. #undef HAVE_SYS_SOCKET_H
  134. #ifdef HAVE_SYS_SOCKET_H
  135. #include <sys/socket.h>
  136. #endif
  137. #undef HAVE_SOCKET
  138. #ifdef HAVE_SOCKET_H
  139. #include <socket.h>
  140. #endif
  141. #undef HAVE_NETINET_IN_H
  142. #ifdef HAVE_NETINET_IN_H
  143. #include <netinet/in.h>
  144. #endif
  145. #undef HAVE_ARPA_INET_H
  146. #ifdef HAVE_ARPA_INET_H
  147. #include <arpa/inet.h>
  148. #endif
  149. #undef HAVE_NETDB_H
  150. #ifdef HAVE_NETDB_H
  151. #include <netdb.h>
  152. #endif
  153. #undef HAVE_CTYPE_H
  154. #ifdef HAVE_CTYPE_H
  155. #include <ctype.h>
  156. #endif
  157. #undef HAVE_PWD_H
  158. #ifdef HAVE_PWD_H
  159. #include <pwd.h>
  160. #endif
  161. #undef HAVE_GRP_H
  162. #ifdef HAVE_GRP_H
  163. #include <grp.h>
  164. #endif
  165. #undef HAVE_DIRENT_H
  166. #ifdef HAVE_DIRENT_H
  167. #include <dirent.h>
  168. #endif
  169. #undef HAVE_SSL
  170. #ifdef HAVE_SSL
  171. #include <rsa.h>
  172. #include <crypto.h>
  173. #include <dh.h>
  174. #include <pem.h>
  175. #include <ssl.h>
  176. #include <err.h>
  177. #include <rand.h>
  178. #endif
  179. #undef HAVE_KRB5_H
  180. #ifdef HAVE_KRB5_H
  181. #include <krb5.h>
  182. #endif
  183. #undef HAVE_INTTYPES_H
  184. #undef HAVE_STDINT_H
  185. #ifdef HAVE_INTTYPES_H
  186. #include <inttypes.h>
  187. #else
  188. #ifdef HAVE_STDINT_H
  189. #include <stdint.h>
  190. #endif
  191. #endif
  192. #endif