summary refs log tree commit diff
path: root/sysdeps/powerpc/nofpu/soft-supp.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/nofpu/soft-supp.h')
-rw-r--r--sysdeps/powerpc/nofpu/soft-supp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/powerpc/nofpu/soft-supp.h b/sysdeps/powerpc/nofpu/soft-supp.h
index 64a3d2a1d2..18b4550e3b 100644
--- a/sysdeps/powerpc/nofpu/soft-supp.h
+++ b/sysdeps/powerpc/nofpu/soft-supp.h
@@ -17,7 +17,13 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include <fenv.h>
+#if defined __NO_FPRS__ && !defined _SOFT_FLOAT
+
+# include <fenv_libc.h>
+
+#else
+
+# include <fenv.h>
 
 typedef union
 {
@@ -25,6 +31,7 @@ typedef union
   unsigned int l[2];
 } fenv_union_t;
 
+#endif
 
 /* FIXME: these variables should be thread specific (see bugzilla bug
    15483) and ideally preserved across signal handlers, like hardware