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.

25 lines
634 B

  1. --- a/src/config.h
  2. +++ b/src/config.h
  3. @@ -30,6 +30,10 @@
  4. #ifndef __CONFIG_H
  5. #define __CONFIG_H
  6. +#if defined(__unix) || defined(__linux__)
  7. +#include <features.h>
  8. +#endif
  9. +
  10. #ifdef __APPLE__
  11. #include <AvailabilityMacros.h>
  12. #endif
  13. @@ -62,9 +66,9 @@
  14. #endif
  15. /* Test for backtrace() */
  16. -#if defined(__APPLE__) || (defined(__linux__) && defined(__GLIBC__)) || \
  17. +#if (defined(__APPLE__) || (defined(__linux__) && defined(__GLIBC__)) || \
  18. defined(__FreeBSD__) || (defined(__OpenBSD__) && defined(USE_BACKTRACE))\
  19. - || defined(__DragonFly__)
  20. + || defined(__DragonFly__)) && !defined(__UCLIBC__)
  21. #define HAVE_BACKTRACE 1
  22. #endif