mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
main: Fix __iwd_backtrace_init() availability detection
Check for HAVE_EXECINFO_H for all __iwd_backtrace_init usages. Fixes: src/main.o: In function `main': main.c:(.text.startup+0x798): undefined reference to `__iwd_backtrace_init' collect2: error: ld returned 1 exit status
This commit is contained in:
parent
40ec69876c
commit
7d6e11ddd5
@ -19,7 +19,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#ifdef __GLIBC__
|
#ifdef HAVE_EXECINFO_H
|
||||||
void __iwd_backtrace_init();
|
void __iwd_backtrace_init();
|
||||||
void __iwd_backtrace_print(unsigned int offset);
|
void __iwd_backtrace_print(unsigned int offset);
|
||||||
#endif
|
#endif
|
||||||
|
@ -445,7 +445,7 @@ int main(int argc, char *argv[])
|
|||||||
if (debugopt)
|
if (debugopt)
|
||||||
l_debug_enable(debugopt);
|
l_debug_enable(debugopt);
|
||||||
|
|
||||||
#ifdef __GLIBC__
|
#ifdef HAVE_EXECINFO_H
|
||||||
__iwd_backtrace_init();
|
__iwd_backtrace_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user