From 957c576e15515213bc7d6a21f4d86678002f2f01 Mon Sep 17 00:00:00 2001 From: JeongBong Seo Date: Tue, 2 Apr 2019 15:43:41 +0900 Subject: [PATCH] DRAFT urdfdom-2.1.0.inc: Fix compile error (#include_next ) Version-specific because might be fixed in a new version. --- includes-ros2/urdfdom/urdfdom-2.1.0.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 includes-ros2/urdfdom/urdfdom-2.1.0.inc diff --git a/includes-ros2/urdfdom/urdfdom-2.1.0.inc b/includes-ros2/urdfdom/urdfdom-2.1.0.inc new file mode 100644 index 0000000..6020ba3 --- /dev/null +++ b/includes-ros2/urdfdom/urdfdom-2.1.0.inc @@ -0,0 +1,12 @@ +# Copyright (c) 2019 LG Electronics, Inc. + +# Fixes this: +# | fatal error: stdlib.h: No such file or directory +# | #include_next +do_configure_append() { + if [ -e ${B}/build.ninja ]; then + sed -i -e 's/-isystem /-I/g' ${B}/build.ninja + else + grep -rl -- '-isystem ' ${B} | xargs sed -i -e 's/-isystem /-I/g' + fi +}