From 2e71e88c2a814ef9e0a8d1206bff0e071dc6d606 Mon Sep 17 00:00:00 2001 From: Alex Laskin Date: Sat, 16 Jun 2018 08:27:03 +0300 Subject: testing/ddcutil: new aport Query and change Linux monitor settings using DDC/CI and USB https://github.com/rockowitz/ddcutil --- testing/ddcutil/execinfo.patch | 76 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 testing/ddcutil/execinfo.patch (limited to 'testing/ddcutil/execinfo.patch') diff --git a/testing/ddcutil/execinfo.patch b/testing/ddcutil/execinfo.patch new file mode 100644 index 0000000000..99448d70b0 --- /dev/null +++ b/testing/ddcutil/execinfo.patch @@ -0,0 +1,76 @@ +--- ddcutil-0.9.1-clean/src/test/i2c/i2c_io_old.c ++++ ddcutil-0.9.1-patched/src/test/i2c/i2c_io_old.c +@@ -34,7 +34,9 @@ + + #include + #include ++#ifdef HAVE_EXECINFO_H + #include ++#endif + #include + #include + #include +--- ddcutil-0.9.1-clean/src/util/debug_util.c ++++ ddcutil-0.9.1-patched/src/util/debug_util.c +@@ -26,7 +26,9 @@ + */ + + /** \cond */ ++#ifdef HAVE_EXECINFO_H + #include ++ + #include + #include + #include +@@ -82,7 +84,6 @@ + return result; + } + +- + #ifdef OLD + /** Show the call stack. + * +@@ -194,5 +195,5 @@ + g_ptr_array_free(callstack, true); + } + } +- ++#endif + +--- ddcutil-0.9.1-clean/src/util/debug_util.h ++++ ddcutil-0.9.1-patched/src/util/debug_util.h +@@ -30,7 +30,9 @@ + + #include + ++#ifdef HAVE_EXECINFO_H + GPtrArray * get_backtrace(int stack_adjust); + void show_backtrace(int stack_adjust); ++#endif + + #endif /* DEBUG_UTIL_H_ */ + +--- ddcutil-0.9.1-clean/src/util/error_info.c ++++ ddcutil-0.9.1-patched/src/util/error_info.c +@@ -101,7 +101,9 @@ + bool debug = false; + if (debug) { + printf("(%s) Starting. erec=%p\n", __func__, erec); ++#ifdef HAVE_EXECINFO_H + show_backtrace(2); ++#endif + } + if (erec) { + VALID_DDC_ERROR_PTR(erec); + +--- ddcutil-0.9.1-clean/src/util/edid.h ++++ ddcutil-0.9.1-patched/src/util/edid.h +@@ -36,6 +36,7 @@ + #include + #include + #include ++#include + /** \endcond */ + + #include "coredefs.h" + -- cgit v1.2.3