summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-13 10:07:50 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-14 17:13:41 +0200
commitd2d3fabf308692c35d0a4690b958bf438db67a45 (patch)
tree5d577b370bf15365c3d5d377517618f8074792fc
parente5f8fd32515505baf26abff7401ea00ec65fcadb (diff)
downloadrtems-libbsd-d2d3fabf308692c35d0a4690b958bf438db67a45.tar.bz2
rtems-bsd-cxx: Undefine _GNU_SOURCE
At least the powerpc C++ compiler defines currently _GNU_SOURCE due to a GCC configuration error. This leads to conflicting qsort_r() definitions. As a workaround undefine _GNU_SOURCE for this C++ compatibility test file. Update #4078.
-rw-r--r--rtemsbsd/rtems/rtems-bsd-cxx.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/rtemsbsd/rtems/rtems-bsd-cxx.cc b/rtemsbsd/rtems/rtems-bsd-cxx.cc
index aadb25af..f6ec78e6 100644
--- a/rtemsbsd/rtems/rtems-bsd-cxx.cc
+++ b/rtemsbsd/rtems/rtems-bsd-cxx.cc
@@ -31,6 +31,7 @@
#define __STDC_LIMIT_MACROS
#define __STDC_CONSTANT_MACROS
+#undef _GNU_SOURCE
#include <machine/rtems-bsd-kernel-space.h>