[dpdk-dev] [PATCH 3/3] eal: remove references to execinfo.h for musl
Wei Dai
wei.dai at intel.com
Fri Mar 10 12:58:52 CET 2017
execinfo.h is not supported by musl now.
need to remove references to execinfo.h to
build DPDK with musl.
musl is an implementation of the userspace portion
of the standard library functionality described in
the ISO C and POSIX standards, plus common extensions.
Get more details about musl from
http://www.musl-libc.org
Signed-off-by: Wei Dai <wei.dai at intel.com>
---
lib/librte_eal/linuxapp/eal/eal_debug.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/librte_eal/linuxapp/eal/eal_debug.c b/lib/librte_eal/linuxapp/eal/eal_debug.c
index 5fbc17c..d2416ee 100644
--- a/lib/librte_eal/linuxapp/eal/eal_debug.c
+++ b/lib/librte_eal/linuxapp/eal/eal_debug.c
@@ -31,7 +31,10 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <execinfo.h>
+#ifndef RTE_LIBC_MUSL
+ #include <execinfo.h>
+#endif
+
#include <stdarg.h>
#include <signal.h>
#include <stdlib.h>
@@ -47,6 +50,7 @@
/* dump the stack of the calling core */
void rte_dump_stack(void)
{
+#ifndef RTE_LIBC_MUSL
void *func[BACKTRACE_SIZE];
char **symb = NULL;
int size;
@@ -64,6 +68,7 @@ void rte_dump_stack(void)
}
free(symb);
+#endif
}
/* not implemented in this environment */
--
2.7.4
More information about the dev
mailing list