domoticz: fix build with uClibc
authorRahul Bedarkar <rahul.bedarkar@imgtec.com>
Thu, 25 Aug 2016 17:01:06 +0000 (22:31 +0530)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 25 Aug 2016 21:58:32 +0000 (23:58 +0200)
commit3f9c5fb096ad10d03832d9e0cd05ad4d02adf8c0
treecebc49e69a515b4b2e6e037f63cf96a48bd9474e
parent791e35f222da58e815a657d07b620635b78a80e8
domoticz: fix build with uClibc

domoticz.cpp currently assumes that on GNU/Linux systems header
<execinfo.h> is available. But that is not true. Since it provided by
C library and uClibc can be built without backtrace support. And in
such cases we get following build error.

  domoticz-3.4834/main/domoticz.cpp:48:22: fatal error: execinfo.h: No such file or directory
   #include <execinfo.h>
                        ^
  compilation terminated.

This commit adds patch for detecting presence of <execinfo.h>
and guards code accordingly.

Fixes:

  http://autobuild.buildroot.net/results/393/393f839e160b51ca12ac36058718ad2f0c1b50a6/

Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/domoticz/0001-add-proper-check-for-detecting-header-execinfo.h.patch [new file with mode: 0644]