summaryrefslogtreecommitdiff
path: root/lib/libc/arch/arm
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-07-21 01:51:12 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-07-21 01:51:12 +0000
commitaa9ef24e4656ff609846592e4a0986d78591ad4f (patch)
tree3e0e3b87efa9679d68f3c087efc8d191949505e6 /lib/libc/arch/arm
parent378b6fbd3692c1ba624cff8309b6bdbcd76657a5 (diff)
Switch from <sys/endian.h> or <machine/endian.h> to the new,
being-standardized <endian.h> ok deraadt@ millert@ beck@
Diffstat (limited to 'lib/libc/arch/arm')
-rw-r--r--lib/libc/arch/arm/gen/infinity.c5
-rw-r--r--lib/libc/arch/arm/gen/nan.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/libc/arch/arm/gen/infinity.c b/lib/libc/arch/arm/gen/infinity.c
index 2e3eb42111b..9bda3bbc3d6 100644
--- a/lib/libc/arch/arm/gen/infinity.c
+++ b/lib/libc/arch/arm/gen/infinity.c
@@ -1,13 +1,12 @@
-/* $OpenBSD: infinity.c,v 1.3 2004/02/02 07:03:21 drahn Exp $ */
+/* $OpenBSD: infinity.c,v 1.4 2014/07/21 01:51:10 guenther Exp $ */
/* $NetBSD: infinity.c,v 1.3 2002/02/19 20:08:19 bjh21 Exp $ */
/*
* IEEE-compatible infinity.c -- public domain.
*/
-#include <sys/types.h>
+#include <endian.h>
#include <math.h>
-#include <machine/endian.h>
char __infinity[] __attribute__((__aligned__(sizeof(double)))) =
#if BYTE_ORDER == BIG_ENDIAN
diff --git a/lib/libc/arch/arm/gen/nan.c b/lib/libc/arch/arm/gen/nan.c
index 6c75f3060c2..66e09dce829 100644
--- a/lib/libc/arch/arm/gen/nan.c
+++ b/lib/libc/arch/arm/gen/nan.c
@@ -1,10 +1,9 @@
-/* $OpenBSD: nan.c,v 1.1 2008/07/24 09:31:06 martynas Exp $ */
+/* $OpenBSD: nan.c,v 1.2 2014/07/21 01:51:10 guenther Exp $ */
/* Written by Martynas Venckus. Public Domain. */
-#include <sys/types.h>
+#include <endian.h>
#include <math.h>
-#include <machine/endian.h>
/* bytes for qNaN on an arm (IEEE single format) */
char __nan[] __attribute__((__aligned__(sizeof(float)))) =