about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@bell.net>2015-11-22 17:15:04 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-29 13:24:51 -0500
commitd51442aacdbdb63e2f10815d843b551a9291d7a5 (patch)
tree8b625eb5ecc408f62eeaee4f63fea5dfbc22f926 /sysdeps
parentd46256f440fef7e3ee49d2e2660c2eeb707437e9 (diff)
downloadglibc-d51442aacdbdb63e2f10815d843b551a9291d7a5.tar.gz
glibc-d51442aacdbdb63e2f10815d843b551a9291d7a5.tar.xz
glibc-d51442aacdbdb63e2f10815d843b551a9291d7a5.zip
hppa: Define __NO_LONG_DOUBLE_MATH so headers are consistent with libm build [BZ #19270]
The attached patch fixes BZ #19270 and the Debian gmt package now builds
successfully.  Aside from the comment, the define of __NO_LONG_DOUBLE_MATH
is similar to that in the generic version of glibc.

Build tested on hppa-unknown-linux-gnu with no observed regressions.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/hppa/fpu/bits/mathdef.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sysdeps/hppa/fpu/bits/mathdef.h b/sysdeps/hppa/fpu/bits/mathdef.h
index d189f4a373..31f13e4f85 100644
--- a/sysdeps/hppa/fpu/bits/mathdef.h
+++ b/sysdeps/hppa/fpu/bits/mathdef.h
@@ -34,5 +34,10 @@ typedef double double_t;	/* `double' expressions are evaluated as
 
 #endif	/* ISO C99 */
 
-/* On hppa `long double' is 64-bits. */
-#undef __NO_LONG_DOUBLE_MATH
+#ifndef __NO_LONG_DOUBLE_MATH
+/* On hppa `long double' and `double' are 64-bits.  So, libm is built
+   with NO_LONG_DOUBLE defined.  The following define ensures the library
+   and headers are consistent.  This disables the declaration of all the
+   `long double' function variants.  */
+# define __NO_LONG_DOUBLE_MATH	1
+#endif