config.h.in 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /************************************************************************
  2. *
  3. * NRPE Common Header File
  4. * Copyright (c) 1999-2002 Ethan Galstad (nagios@nagios.org)
  5. * Last Modified: 12-30-2002
  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. #include <stdio.h>
  24. #include <stdlib.h>
  25. #define DEFAULT_SERVER_PORT @nrpe_port@ /* default port to use */
  26. #undef STDC_HEADERS
  27. #undef HAVE_STRDUP
  28. #undef HAVE_STRSTR
  29. #undef HAVE_STRTOUL
  30. #undef HAVE_INITGROUPS
  31. #undef HAVE_PWD_H
  32. #undef HAVE_GRP_H
  33. #undef HAVE_SYSLOG_H
  34. #undef HAVE_LIMITS_H
  35. #undef HAVE_SYS_RESOURCE_H
  36. #define SOCKET_SIZE_TYPE ""
  37. #define GETGROUPS_T ""
  38. #define RETSIGTYPE ""
  39. #undef HAVE_STRINGS_H
  40. #undef HAVE_STRING_H
  41. #ifdef HAVE_STRINGS_H
  42. #include <strings.h>
  43. #endif
  44. #ifdef HAVE_STRINGS_H
  45. #include <string.h>
  46. #endif
  47. #undef HAVE_UNISTD_H
  48. #ifdef HAVE_UNISTD_H
  49. #include <unistd.h>
  50. #endif
  51. #undef HAVE_SIGNAL_H
  52. #ifdef HAVE_SIGNAL_H
  53. #include <signal.h>
  54. #endif
  55. #undef HAVE_SYSLOG_H
  56. #ifdef HAVE_SYSLOG_H
  57. #include <syslog.h>
  58. #endif
  59. #undef HAVE_SYS_STAT_H
  60. #ifdef HAVE_SYS_STAT_H
  61. #include <sys/stat.h>
  62. #endif
  63. #undef HAVE_FCNTL_H
  64. #ifdef HAVE_FCNTL_H
  65. #include <fcntl.h>
  66. #endif
  67. #undef HAVE_SYS_TYPES_H
  68. #ifdef HAVE_SYS_TYPES_H
  69. #include <sys/types.h>
  70. #endif
  71. #undef HAVE_SYS_WAIT_H
  72. #ifdef HAVE_SYS_WAIT_H
  73. #include <sys/wait.h>
  74. #endif
  75. #ifndef WEXITSTATUS
  76. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  77. #endif
  78. #ifndef WIFEXITED
  79. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  80. #endif
  81. #undef HAVE_ERRNO_H
  82. #ifdef HAVE_ERRNO_H
  83. #include <errno.h>
  84. #endif
  85. /* needed for the time_t structures we use later... */
  86. #undef TIME_WITH_SYS_TIME
  87. #undef HAVE_SYS_TIME_H
  88. #if TIME_WITH_SYS_TIME
  89. # include <sys/time.h>
  90. # include <time.h>
  91. #else
  92. # if HAVE_SYS_TIME_H
  93. # include <sys/time.h>
  94. # else
  95. # include <time.h>
  96. # endif
  97. #endif
  98. #undef HAVE_SYS_SOCKET_H
  99. #ifdef HAVE_SYS_SOCKET_H
  100. #include <sys/socket.h>
  101. #endif
  102. #undef HAVE_SOCKET
  103. #ifdef HAVE_SOCKET_H
  104. #include <socket.h>
  105. #endif
  106. #undef HAVE_NETINET_IN_H
  107. #ifdef HAVE_NETINET_IN_H
  108. #include <netinet/in.h>
  109. #endif
  110. #undef HAVE_ARPA_INET_H
  111. #ifdef HAVE_ARPA_INET_H
  112. #include <arpa/inet.h>
  113. #endif
  114. #undef HAVE_NETDB_H
  115. #ifdef HAVE_NETDB_H
  116. #include <netdb.h>
  117. #endif
  118. #undef HAVE_CTYPE_H
  119. #ifdef HAVE_CTYPE_H
  120. #include <ctype.h>
  121. #endif
  122. #ifdef HAVE_PWD_H
  123. #include <pwd.h>
  124. #endif
  125. #ifdef HAVE_GRP_H
  126. #include <grp.h>
  127. #endif