network-manager-execinfo.patch 859 B

12345678910111213141516171819202122232425262728293031
  1. From ff9471b7d83545614100a270e2d85b7b272abe97 Mon Sep 17 00:00:00 2001
  2. From: Peter Korsgaard <jacmet@sunsite.dk>
  3. Date: Mon, 2 Jan 2012 14:45:16 +0100
  4. Subject: [PATCH] [PATCH] only include execinfo.h if crashtrace support is
  5. enabled
  6. On systems without backtrace suport (E.G. uClibc depending on config),
  7. execinfo.h might not be available, breaking the build.
  8. Fix it by only including it if enabled.
  9. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  10. ---
  11. src/logging/nm-logging.c | 1 -
  12. 1 files changed, 0 insertions(+), 1 deletions(-)
  13. diff --git a/src/logging/nm-logging.c b/src/logging/nm-logging.c
  14. index ca6a709..26c8670 100644
  15. --- a/src/logging/nm-logging.c
  16. +++ b/src/logging/nm-logging.c
  17. @@ -23,7 +23,6 @@
  18. #include <dlfcn.h>
  19. #include <syslog.h>
  20. -#include <execinfo.h>
  21. #include <stdio.h>
  22. #include <stdlib.h>
  23. #include <unistd.h>
  24. --
  25. 1.7.7.1