[rtems-libbsd commit] rtems-bsd-cxx: Undefine _GNU_SOURCE

Sebastian Huber sebh at rtems.org
Mon Sep 14 15:13:50 UTC 2020

Module:    rtems-libbsd
Branch:    master
Commit:    d2d3fabf308692c35d0a4690b958bf438db67a45
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=d2d3fabf308692c35d0a4690b958bf438db67a45

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sun Sep 13 10:07:50 2020 +0200

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.


 rtemsbsd/rtems/rtems-bsd-cxx.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rtemsbsd/rtems/rtems-bsd-cxx.cc b/rtemsbsd/rtems/rtems-bsd-cxx.cc
index aadb25a..f6ec78e 100644
--- a/rtemsbsd/rtems/rtems-bsd-cxx.cc
+++ b/rtemsbsd/rtems/rtems-bsd-cxx.cc
@@ -31,6 +31,7 @@
+#undef _GNU_SOURCE
 #include <machine/rtems-bsd-kernel-space.h>

More information about the vc mailing list