You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.h.in 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. #ifndef RSPAMD_CONFIG_H_IN
  2. #define RSPAMD_CONFIG_H_IN
  3. #cmakedefine HAVE_SYS_TYPES_H 1
  4. #cmakedefine HAVE_SYS_TIME_H 1
  5. #cmakedefine HAVE_SYS_UIO_H 1
  6. #cmakedefine HAVE_FCNTL_H 1
  7. #cmakedefine HAVE_MATH_H 1
  8. #cmakedefine HAVE_STDIO_H 1
  9. #cmakedefine HAVE_STDLIB_H 1
  10. #cmakedefine HAVE_STRING_H 1
  11. #cmakedefine HAVE_STRINGS_H 1
  12. #cmakedefine HAVE_TIME_H 1
  13. #cmakedefine HAVE_UNISTD_H 1
  14. #cmakedefine HAVE_SYSEXITS_H 1
  15. #cmakedefine HAVE_STDINT_H 1
  16. #cmakedefine HAVE_INTTYPES_H 1
  17. #cmakedefine HAVE_STDBOOL_H 1
  18. #cmakedefine HAVE_NETDB_H 1
  19. #cmakedefine HAVE_SYSLOG_H 1
  20. #cmakedefine HAVE_LIBUTIL_H 1
  21. #cmakedefine HAVE_ENDIAN_H 1
  22. #cmakedefine HAVE_SYS_ENDIAN_H 1
  23. #cmakedefine HAVE_MACHINE_ENDIAN_H 1
  24. #cmakedefine HAVE_SYS_CDEFS_H 1
  25. #cmakedefine HAVE_SYS_QUEUE_H 1
  26. #cmakedefine HAVE_SYS_MMAN_H 1
  27. #cmakedefine HAVE_SYS_SOCKET_H 1
  28. #cmakedefine HAVE_SYS_UN_H 1
  29. #cmakedefine HAVE_SYS_STAT_H 1
  30. #cmakedefine HAVE_SYS_WAIT_H 1
  31. #cmakedefine HAVE_SYS_PARAM_H 1
  32. #cmakedefine HAVE_PIDFILE 1
  33. #cmakedefine HAVE_SETPROCTITLE 1
  34. #cmakedefine HAVE_GETPAGESIZE 1
  35. #cmakedefine HAVE_NANOSLEEP 1
  36. #cmakedefine HAVE_PATH_MAX 1
  37. #cmakedefine HAVE_MAXPATHLEN 1
  38. #cmakedefine HAVE_MMAP_SHARED 1
  39. #cmakedefine HAVE_MMAP_ANON 1
  40. #cmakedefine HAVE_COMPATIBLE_QUEUE_H 1
  41. #cmakedefine HAVE_SC_NPROCESSORS_ONLN 1
  42. #cmakedefine DEBUG_MODE 1
  43. #define RVERSION "${RSPAMD_VERSION}"
  44. #define RSPAMD_MASTER_SITE_URL "${RSPAMD_MASTER_SITE_URL}"
  45. #define MODULES_NUM ${RSPAMD_MODULES_NUM}
  46. /* sys/types */
  47. #ifdef HAVE_SYS_TYPES_H
  48. #include <sys/types.h>
  49. #endif
  50. /* cdefs */
  51. #ifdef HAVE_SYS_CDEFS_H
  52. #include <sys/cdefs.h>
  53. #endif
  54. /* sys/param */
  55. #ifdef HAVE_SYS_PARAM_H
  56. #include <sys/param.h>
  57. #endif
  58. /* stdint */
  59. #ifdef HAVE_STDINT_H
  60. #include <stdint.h>
  61. #elif defined(HAVE_INTTYPES_H)
  62. #include <inttypes.h>
  63. #endif
  64. /* stdbool */
  65. #ifdef HAVE_STDBOOL_H
  66. #include <stdbool.h>
  67. #endif
  68. /* queue */
  69. #ifdef HAVE_COMPATIBLE_QUEUE_H
  70. #ifdef HAVE_SYS_QUEUE_H
  71. #include <sys/queue.h>
  72. #endif
  73. #else
  74. #include "queue.h"
  75. #endif
  76. /* sys/socket */
  77. #ifdef HAVE_SYS_SOCKET_H
  78. #include <sys/socket.h>
  79. #endif
  80. /* sys/mman */
  81. #ifdef HAVE_SYS_MMAN_H
  82. #include <sys/mman.h>
  83. #endif
  84. /* netinet issues */
  85. #ifdef HAVE_NETINET_IN_H
  86. #include <netinet/in.h>
  87. #endif
  88. #ifdef HAVE_ARPA_INET_H
  89. #include <arpa/inet.h>
  90. #endif
  91. /* unix sockets */
  92. #ifdef HAVE_SYS_UN_H
  93. #include <sys/un.h>
  94. #endif
  95. /* netdb */
  96. #ifdef HAVE_NETDB_H
  97. #include <netdb.h>
  98. #endif
  99. /* stdlib */
  100. #ifdef HAVE_STDLIB_H
  101. #include <stdlib.h>
  102. #endif
  103. /* stdio */
  104. #ifdef HAVE_STDIO_H
  105. #include <stdio.h>
  106. #endif
  107. /* time */
  108. #ifdef HAVE_TIME_H
  109. #include <time.h>
  110. #endif
  111. /* sysexits */
  112. #ifdef HAVE_SYSEXITS_H
  113. #include <sysexits.h>
  114. #endif
  115. /* unistd */
  116. #ifdef HAVE_UNISTD_H
  117. #include <unistd.h>
  118. #endif
  119. /* string */
  120. #ifdef HAVE_STDIO_H
  121. #include <string.h>
  122. #endif
  123. /* fcntl */
  124. #ifdef HAVE_FCNTL_H
  125. #include <fcntl.h>
  126. #endif
  127. /* sys/stat */
  128. #ifdef HAVE_SYS_STAT_H
  129. #include <sys/stat.h>
  130. #endif
  131. /* sys/wait */
  132. #ifdef HAVE_SYS_WAIT_H
  133. #include <sys/wait.h>
  134. #endif
  135. /* math */
  136. #ifdef HAVE_MATH_H
  137. #include <math.h>
  138. #endif
  139. #ifdef HAVE_LIBUTIL_H
  140. #include <libutil.h>
  141. #endif
  142. #ifdef HAVE_SYSLOG_H
  143. #include <syslog.h>
  144. #endif
  145. #include <errno.h>
  146. #include <signal.h>
  147. #include <event.h>
  148. #include <glib.h>
  149. #ifndef NO_GMIME
  150. #include <gmime/gmime.h>
  151. #endif
  152. /* Forwarded declaration */
  153. struct module_ctx;
  154. struct config_file;
  155. typedef struct module_s {
  156. const char *name;
  157. int (*module_init_func)(struct config_file *cfg, struct module_ctx **ctx);
  158. int (*module_config_func)(struct config_file *cfg);
  159. int (*module_reconfig_func)(struct config_file *cfg);
  160. } module_t;
  161. extern module_t modules[];
  162. #endif