[PATCH] D13016: Check for GLIBC before including execinfo.h

Vasileios Kalintiris via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 06:07:16 PDT 2015


vkalintiris created this revision.
vkalintiris added reviewers: clayborg, ovyalov.
vkalintiris added a subscriber: llvm-commits.
Herald added subscribers: srhines, danalbert, tberghammer.

http://reviews.llvm.org/D13016

Files:
  source/Host/linux/Host.cpp

Index: source/Host/linux/Host.cpp
===================================================================
--- source/Host/linux/Host.cpp
+++ source/Host/linux/Host.cpp
@@ -14,7 +14,7 @@
 #include <sys/stat.h>
 #include <dirent.h>
 #include <fcntl.h>
-#ifndef __ANDROID__
+#if defined(__GLIBC__) && !defined(__ANDROID__)
 #include <execinfo.h>
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13016.35241.patch
Type: text/x-patch
Size: 349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150921/8c9af72d/attachment.bin>


More information about the llvm-commits mailing list