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.

32 lines
1.0 KiB

  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -56,9 +56,6 @@ AC_CHECK_HEADERS([arpa/inet.h netinet/in
  4. # Checks for typedefs, structures, and compiler characteristics.
  5. AC_C_INLINE
  6. AC_TYPE_PID_T
  7. -AC_CHECK_DECLS([sys_siglist], [], [
  8. - AC_MSG_ERROR([Unable to find sys_siglist declaration.])
  9. -], [[#include <signal.h>]])
  10. AC_TYPE_UINT32_T
  11. AC_TYPE_UINT16_T
  12. AC_TYPE_UINT8_T
  13. --- a/src/addrwatch.c
  14. +++ b/src/addrwatch.c
  15. @@ -339,7 +339,7 @@ void reload_cb(evutil_socket_t fd, short
  16. void reload_cb(int fd, short events, void *arg)
  17. #endif
  18. {
  19. - log_msg(LOG_DEBUG, "Received signal (%d), %s", fd, sys_siglist[fd]);
  20. + log_msg(LOG_DEBUG, "Received signal (%d), %s", fd, strsignal(fd));
  21. log_msg(LOG_DEBUG, "Reopening output files");
  22. output_flatfile_reload();
  23. @@ -353,7 +353,7 @@ void stop_cb(evutil_socket_t fd, short e
  24. void stop_cb(int fd, short events, void *arg)
  25. #endif
  26. {
  27. - log_msg(LOG_DEBUG, "Received signal (%d), %s", fd, sys_siglist[fd]);
  28. + log_msg(LOG_DEBUG, "Received signal (%d), %s", fd, strsignal(fd));
  29. #if HAVE_LIBEVENT2
  30. event_base_loopbreak(cfg.eb);
  31. #else