Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/sys Only inlcude fenv.h if __HAVE_FENV



details:   https://anonhg.NetBSD.org/src/rev/cc8cc930c06d
branches:  trunk
changeset: 1008028:cc8cc930c06d
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Mar 08 15:07:44 2020 +0000

description:
Only inlcude fenv.h if __HAVE_FENV

diffstat:

 tests/lib/libc/sys/t_ptrace_wait.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 44473b61d6dd -r cc8cc930c06d tests/lib/libc/sys/t_ptrace_wait.h
--- a/tests/lib/libc/sys/t_ptrace_wait.h        Sun Mar 08 15:05:18 2020 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.h        Sun Mar 08 15:07:44 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.h,v 1.26 2020/03/07 19:47:44 kamil Exp $ */
+/*     $NetBSD: t_ptrace_wait.h,v 1.27 2020/03/08 15:07:44 martin Exp $        */
 
 /*-
  * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -654,7 +654,9 @@
 #endif
 }
 
+#ifdef __HAVE_FENV
 #include <fenv.h>
+#endif
 
 #if (__arm__ && !__SOFTFP__) || __aarch64__
 #include <ieeefp.h> /* only need for ARM Cortex/Neon hack */



Home | Main Index | Thread Index | Old Index