summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2008-06-25 15:54:12 +0000
committerderaadt <deraadt@openbsd.org>2008-06-25 15:54:12 +0000
commit1eaec638b52a53ff8f6409e98955e7ea33efe77a (patch)
treeb98ee21ea929e9e567f915f3f801aff60a91a24f /lib/libc/rpc
parentsync (diff)
downloadwireguard-openbsd-1eaec638b52a53ff8f6409e98955e7ea33efe77a.tar.xz
wireguard-openbsd-1eaec638b52a53ff8f6409e98955e7ea33efe77a.zip
Change a very long selective list of all architectures which do IEEE into
just handling the vax different (just vax for now, 'cause tahoe might even be too legacy for Miod) ok miod
Diffstat (limited to 'lib/libc/rpc')
-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)