diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-09-13 10:07:50 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-09-14 17:13:41 +0200 |
commit | d2d3fabf308692c35d0a4690b958bf438db67a45 (patch) | |
tree | 5d577b370bf15365c3d5d377517618f8074792fc /rtemsbsd | |
parent | mcast01: Add test program (diff) | |
download | rtems-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.
Diffstat (limited to 'rtemsbsd')
-rw-r--r-- | rtemsbsd/rtems/rtems-bsd-cxx.cc | 1 |
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> |