config.h.in 2.9 KB

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