summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/rpc/xdr_float.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/libc/rpc/xdr_float.c b/lib/libc/rpc/xdr_float.c
index 22626c1b242..f0dcaa28d2e 100644
--- a/lib/libc/rpc/xdr_float.c
+++ b/lib/libc/rpc/xdr_float.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xdr_float.c,v 1.16 2006/10/10 22:03:21 miod Exp $ */
+/* $OpenBSD: xdr_float.c,v 1.17 2008/06/25 15:54:12 deraadt Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@@ -49,14 +49,6 @@
* This routine works on machines with IEEE754 FP and Vaxen.
*/
-#if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \
- defined(__mips__) || defined(__ns32k__) || defined(__alpha__) || \
- defined(__arm__) || defined(__powerpc__) || defined(__m88k__) || \
- defined(__hppa__) || defined(__x86_64__) || defined(__sh__)
-#include <machine/endian.h>
-#define IEEEFP
-#endif
-
#ifdef __vax__
/* What IEEE single precision floating point looks like on a Vax */
@@ -86,7 +78,11 @@ static struct sgl_limits {
{{ 0x0, 0x0, 0x0, 0x0 }, /* Min Vax */
{ 0x0, 0x0, 0x0 }} /* Min IEEE */
};
-#endif /* __vax__ */
+
+#else
+#include <machine/endian.h>
+#define IEEEFP
+#endif
bool_t
xdr_float(XDR *xdrs, float *fp)