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:12 +0200 |
commit | 5eed6acb5fb3a594090e6dac15bceca72d9a0869 (patch) | |
tree | ff232960501da481cc223c2b9334458874c379a8 | |
parent | mcast01: Add test program (diff) | |
download | rtems-libbsd-5eed6acb5fb3a594090e6dac15bceca72d9a0869.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.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> |