summaryrefslogtreecommitdiff
path: root/lib/libm
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-12-10 01:08:26 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-12-10 01:08:26 +0000
commit0d45787e277d38b2d40639aa72603d75a9fafc17 (patch)
tree38673d4de24138051d5f21b33ba544ae585cab3d /lib/libm
parentd7629e71bd431dd7682ce45962e3aa669ee29ff7 (diff)
use sys/cdefs.h; pointed out by theo
Diffstat (limited to 'lib/libm')
-rw-r--r--lib/libm/arch/hppa/e_sqrt.c4
-rw-r--r--lib/libm/arch/hppa/s_rint.c4
-rw-r--r--lib/libm/noieee_src/n_asincos.c4
-rw-r--r--lib/libm/noieee_src/n_atan.c4
-rw-r--r--lib/libm/noieee_src/n_atan2.c4
-rw-r--r--lib/libm/noieee_src/n_fdim.c4
-rw-r--r--lib/libm/noieee_src/n_floor.c4
-rw-r--r--lib/libm/noieee_src/n_fmax.c4
-rw-r--r--lib/libm/noieee_src/n_fmin.c4
-rw-r--r--lib/libm/noieee_src/n_sincos.c4
-rw-r--r--lib/libm/noieee_src/n_support.c4
-rw-r--r--lib/libm/noieee_src/n_tan.c4
-rw-r--r--lib/libm/src/e_acos.c2
-rw-r--r--lib/libm/src/e_asin.c2
-rw-r--r--lib/libm/src/e_atan2.c2
-rw-r--r--lib/libm/src/e_sqrt.c2
-rw-r--r--lib/libm/src/s_atan.c2
-rw-r--r--lib/libm/src/s_copysign.c2
-rw-r--r--lib/libm/src/s_cos.c2
-rw-r--r--lib/libm/src/s_fabs.c2
-rw-r--r--lib/libm/src/s_fdim.c4
-rw-r--r--lib/libm/src/s_fmax.c4
-rw-r--r--lib/libm/src/s_fmin.c4
-rw-r--r--lib/libm/src/s_frexp.c2
-rw-r--r--lib/libm/src/s_ilogb.c2
-rw-r--r--lib/libm/src/s_ldexp.c2
-rw-r--r--lib/libm/src/s_nan.c4
-rw-r--r--lib/libm/src/s_rint.c2
-rw-r--r--lib/libm/src/s_scalbn.c2
-rw-r--r--lib/libm/src/s_sin.c2
-rw-r--r--lib/libm/src/s_tan.c2
31 files changed, 47 insertions, 47 deletions
diff --git a/lib/libm/arch/hppa/e_sqrt.c b/lib/libm/arch/hppa/e_sqrt.c
index a8622877b0d..f666325aab4 100644
--- a/lib/libm/arch/hppa/e_sqrt.c
+++ b/lib/libm/arch/hppa/e_sqrt.c
@@ -3,10 +3,10 @@
*/
#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: e_sqrt.c,v 1.3 2008/12/09 20:00:35 martynas Exp $";
+static char rcsid[] = "$OpenBSD: e_sqrt.c,v 1.4 2008/12/10 01:08:24 martynas Exp $";
#endif
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/arch/hppa/s_rint.c b/lib/libm/arch/hppa/s_rint.c
index 1f06be47f36..ba3a0b28622 100644
--- a/lib/libm/arch/hppa/s_rint.c
+++ b/lib/libm/arch/hppa/s_rint.c
@@ -3,10 +3,10 @@
*/
#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: s_rint.c,v 1.3 2008/12/09 20:00:35 martynas Exp $";
+static char rcsid[] = "$OpenBSD: s_rint.c,v 1.4 2008/12/10 01:08:24 martynas Exp $";
#endif
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/noieee_src/n_asincos.c b/lib/libm/noieee_src/n_asincos.c
index 6b720021291..749039097d1 100644
--- a/lib/libm/noieee_src/n_asincos.c
+++ b/lib/libm/noieee_src/n_asincos.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_asincos.c,v 1.8 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_asincos.c,v 1.9 2008/12/10 01:08:24 martynas Exp $ */
/* $NetBSD: n_asincos.c,v 1.1 1995/10/10 23:36:34 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -85,7 +85,7 @@ static char sccsid[] = "@(#)asincos.c 8.1 (Berkeley) 6/4/93";
* 1.99 ulps.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <math.h>
#include "mathimpl.h"
diff --git a/lib/libm/noieee_src/n_atan.c b/lib/libm/noieee_src/n_atan.c
index 9a0df75b1d2..e9851440d3b 100644
--- a/lib/libm/noieee_src/n_atan.c
+++ b/lib/libm/noieee_src/n_atan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_atan.c,v 1.6 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_atan.c,v 1.7 2008/12/10 01:08:24 martynas Exp $ */
/* $NetBSD: n_atan.c,v 1.1 1995/10/10 23:36:36 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -77,7 +77,7 @@ static char sccsid[] = "@(#)atan.c 8.1 (Berkeley) 6/4/93";
* 0.85 ulps.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <math.h>
double
diff --git a/lib/libm/noieee_src/n_atan2.c b/lib/libm/noieee_src/n_atan2.c
index 919e2c662da..ee03b0af254 100644
--- a/lib/libm/noieee_src/n_atan2.c
+++ b/lib/libm/noieee_src/n_atan2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_atan2.c,v 1.10 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_atan2.c,v 1.11 2008/12/10 01:08:24 martynas Exp $ */
/* $NetBSD: n_atan2.c,v 1.1 1995/10/10 23:36:37 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -107,7 +107,7 @@ static char sccsid[] = "@(#)atan2.c 8.1 (Berkeley) 6/4/93";
* shown.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <math.h>
#include "mathimpl.h"
diff --git a/lib/libm/noieee_src/n_fdim.c b/lib/libm/noieee_src/n_fdim.c
index 409816672d0..e887a5a332b 100644
--- a/lib/libm/noieee_src/n_fdim.c
+++ b/lib/libm/noieee_src/n_fdim.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_fdim.c,v 1.2 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_fdim.c,v 1.3 2008/12/10 01:08:24 martynas Exp $ */
/*-
* Copyright (c) 2004 David Schultz <das@FreeBSD.ORG>
* All rights reserved.
@@ -25,7 +25,7 @@
* SUCH DAMAGE.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <math.h>
#define DECL(type, fn) \
diff --git a/lib/libm/noieee_src/n_floor.c b/lib/libm/noieee_src/n_floor.c
index 7a9f3d66399..ef751386a24 100644
--- a/lib/libm/noieee_src/n_floor.c
+++ b/lib/libm/noieee_src/n_floor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_floor.c,v 1.9 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_floor.c,v 1.10 2008/12/10 01:08:24 martynas Exp $ */
/* $NetBSD: n_floor.c,v 1.1 1995/10/10 23:36:48 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -33,7 +33,7 @@
static char sccsid[] = "@(#)floor.c 8.1 (Berkeley) 6/4/93";
#endif /* not lint */
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <math.h>
#include "mathimpl.h"
diff --git a/lib/libm/noieee_src/n_fmax.c b/lib/libm/noieee_src/n_fmax.c
index f1f2c28d908..e997a937c2c 100644
--- a/lib/libm/noieee_src/n_fmax.c
+++ b/lib/libm/noieee_src/n_fmax.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_fmax.c,v 1.2 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_fmax.c,v 1.3 2008/12/10 01:08:24 martynas Exp $ */
/*-
* Copyright (c) 2004 David Schultz <das@FreeBSD.ORG>
* All rights reserved.
@@ -25,7 +25,7 @@
* SUCH DAMAGE.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <math.h>
double
diff --git a/lib/libm/noieee_src/n_fmin.c b/lib/libm/noieee_src/n_fmin.c
index 7929997da0b..3215b5136d5 100644
--- a/lib/libm/noieee_src/n_fmin.c
+++ b/lib/libm/noieee_src/n_fmin.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_fmin.c,v 1.2 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_fmin.c,v 1.3 2008/12/10 01:08:24 martynas Exp $ */
/*-
* Copyright (c) 2004 David Schultz <das@FreeBSD.ORG>
* All rights reserved.
@@ -25,7 +25,7 @@
* SUCH DAMAGE.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <math.h>
double
diff --git a/lib/libm/noieee_src/n_sincos.c b/lib/libm/noieee_src/n_sincos.c
index 2da035851ca..06c21507287 100644
--- a/lib/libm/noieee_src/n_sincos.c
+++ b/lib/libm/noieee_src/n_sincos.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_sincos.c,v 1.7 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_sincos.c,v 1.8 2008/12/10 01:08:24 martynas Exp $ */
/* $NetBSD: n_sincos.c,v 1.1 1995/10/10 23:37:04 ragge Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -33,7 +33,7 @@
static char sccsid[] = "@(#)sincos.c 8.1 (Berkeley) 6/4/93";
#endif /* not lint */
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <math.h>
#include "mathimpl.h"
diff --git a/lib/libm/noieee_src/n_support.c b/lib/libm/noieee_src/n_support.c
index 36123fc055e..5ad4721138d 100644
--- a/lib/libm/noieee_src/n_support.c
+++ b/lib/libm/noieee_src/n_support.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_support.c,v 1.16 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_support.c,v 1.17 2008/12/10 01:08:24 martynas Exp $ */
/* $NetBSD: n_support.c,v 1.1 1995/10/10 23:37:06 ragge Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -68,7 +68,7 @@ static char sccsid[] = "@(#)support.c 8.1 (Berkeley) 6/4/93";
* REVISED BY K.C. NG on 1/22/85, 2/13/85, 3/24/85.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <math.h>
#include "mathimpl.h"
diff --git a/lib/libm/noieee_src/n_tan.c b/lib/libm/noieee_src/n_tan.c
index e344a84b013..bdaf38d17ae 100644
--- a/lib/libm/noieee_src/n_tan.c
+++ b/lib/libm/noieee_src/n_tan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_tan.c,v 1.7 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: n_tan.c,v 1.8 2008/12/10 01:08:24 martynas Exp $ */
/* $NetBSD: n_tan.c,v 1.1 1995/10/10 23:37:07 ragge Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -33,7 +33,7 @@
static char sccsid[] = "@(#)tan.c 8.1 (Berkeley) 6/4/93";
#endif /* not lint */
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <math.h>
#include "mathimpl.h"
diff --git a/lib/libm/src/e_acos.c b/lib/libm/src/e_acos.c
index 6f459cbf536..0282b115f09 100644
--- a/lib/libm/src/e_acos.c
+++ b/lib/libm/src/e_acos.c
@@ -38,7 +38,7 @@ static char rcsid[] = "$NetBSD: e_acos.c,v 1.9 1995/05/12 04:57:13 jtc Exp $";
* Function needed: sqrt
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/e_asin.c b/lib/libm/src/e_asin.c
index 5348ea0e510..19fefa34552 100644
--- a/lib/libm/src/e_asin.c
+++ b/lib/libm/src/e_asin.c
@@ -44,7 +44,7 @@ static char rcsid[] = "$NetBSD: e_asin.c,v 1.9 1995/05/12 04:57:22 jtc Exp $";
*
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/e_atan2.c b/lib/libm/src/e_atan2.c
index 7dc66c9650e..16487fcdc1c 100644
--- a/lib/libm/src/e_atan2.c
+++ b/lib/libm/src/e_atan2.c
@@ -41,7 +41,7 @@ static char rcsid[] = "$NetBSD: e_atan2.c,v 1.8 1995/05/10 20:44:51 jtc Exp $";
* to produce the hexadecimal values shown.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/e_sqrt.c b/lib/libm/src/e_sqrt.c
index 04c94bdeec1..a857ac1e098 100644
--- a/lib/libm/src/e_sqrt.c
+++ b/lib/libm/src/e_sqrt.c
@@ -84,7 +84,7 @@ static char rcsid[] = "$NetBSD: e_sqrt.c,v 1.8 1995/05/10 20:46:17 jtc Exp $";
*---------------
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_atan.c b/lib/libm/src/s_atan.c
index ccc678ae55f..f4de97d5e8f 100644
--- a/lib/libm/src/s_atan.c
+++ b/lib/libm/src/s_atan.c
@@ -34,7 +34,7 @@ static char rcsid[] = "$NetBSD: s_atan.c,v 1.8 1995/05/10 20:46:45 jtc Exp $";
* to produce the hexadecimal values shown.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_copysign.c b/lib/libm/src/s_copysign.c
index 20be8edb540..935ecc7136b 100644
--- a/lib/libm/src/s_copysign.c
+++ b/lib/libm/src/s_copysign.c
@@ -20,7 +20,7 @@ static char rcsid[] = "$NetBSD: s_copysign.c,v 1.8 1995/05/10 20:46:57 jtc Exp $
* with the sign bit of y.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_cos.c b/lib/libm/src/s_cos.c
index fa46074cfe5..0dd4eba2e28 100644
--- a/lib/libm/src/s_cos.c
+++ b/lib/libm/src/s_cos.c
@@ -45,7 +45,7 @@ static char rcsid[] = "$NetBSD: s_cos.c,v 1.7 1995/05/10 20:47:02 jtc Exp $";
* TRIG(x) returns trig(x) nearly rounded
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_fabs.c b/lib/libm/src/s_fabs.c
index 8cbd5f2d4f2..b800b245d8c 100644
--- a/lib/libm/src/s_fabs.c
+++ b/lib/libm/src/s_fabs.c
@@ -18,7 +18,7 @@ static char rcsid[] = "$NetBSD: s_fabs.c,v 1.7 1995/05/10 20:47:13 jtc Exp $";
* fabs(x) returns the absolute value of x.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_fdim.c b/lib/libm/src/s_fdim.c
index 1e071a76dd9..4ce219448f7 100644
--- a/lib/libm/src/s_fdim.c
+++ b/lib/libm/src/s_fdim.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_fdim.c,v 1.2 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: s_fdim.c,v 1.3 2008/12/10 01:08:24 martynas Exp $ */
/*-
* Copyright (c) 2004 David Schultz <das@FreeBSD.ORG>
* All rights reserved.
@@ -25,7 +25,7 @@
* SUCH DAMAGE.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_fmax.c b/lib/libm/src/s_fmax.c
index 436a898b143..731f020952c 100644
--- a/lib/libm/src/s_fmax.c
+++ b/lib/libm/src/s_fmax.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_fmax.c,v 1.3 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: s_fmax.c,v 1.4 2008/12/10 01:08:24 martynas Exp $ */
/*-
* Copyright (c) 2004 David Schultz <das@FreeBSD.ORG>
* All rights reserved.
@@ -25,7 +25,7 @@
* SUCH DAMAGE.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_fmin.c b/lib/libm/src/s_fmin.c
index 051f4e62d20..48b07c2c0c1 100644
--- a/lib/libm/src/s_fmin.c
+++ b/lib/libm/src/s_fmin.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_fmin.c,v 1.3 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: s_fmin.c,v 1.4 2008/12/10 01:08:24 martynas Exp $ */
/*-
* Copyright (c) 2004 David Schultz <das@FreeBSD.ORG>
* All rights reserved.
@@ -25,7 +25,7 @@
* SUCH DAMAGE.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_frexp.c b/lib/libm/src/s_frexp.c
index f18515a5ba2..339c650c37c 100644
--- a/lib/libm/src/s_frexp.c
+++ b/lib/libm/src/s_frexp.c
@@ -24,7 +24,7 @@ static char rcsid[] = "$NetBSD: s_frexp.c,v 1.9 1995/05/10 20:47:24 jtc Exp $";
* with *exp=0.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_ilogb.c b/lib/libm/src/s_ilogb.c
index a843eff9480..76d9b89746f 100644
--- a/lib/libm/src/s_ilogb.c
+++ b/lib/libm/src/s_ilogb.c
@@ -20,7 +20,7 @@ static char rcsid[] = "$NetBSD: s_ilogb.c,v 1.9 1995/05/10 20:47:28 jtc Exp $";
* ilogb(inf/NaN) = 0x7fffffff (no signal is raised)
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_ldexp.c b/lib/libm/src/s_ldexp.c
index cfbe791f1a3..5f03c4c73cb 100644
--- a/lib/libm/src/s_ldexp.c
+++ b/lib/libm/src/s_ldexp.c
@@ -14,7 +14,7 @@
static char rcsid[] = "$NetBSD: s_ldexp.c,v 1.6 1995/05/10 20:47:40 jtc Exp $";
#endif
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <errno.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_nan.c b/lib/libm/src/s_nan.c
index 99b55590313..37bae5028df 100644
--- a/lib/libm/src/s_nan.c
+++ b/lib/libm/src/s_nan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_nan.c,v 1.5 2008/12/09 20:00:35 martynas Exp $ */
+/* $OpenBSD: s_nan.c,v 1.6 2008/12/10 01:08:25 martynas Exp $ */
/*-
* Copyright (c) 2007 David Schultz
* All rights reserved.
@@ -27,7 +27,7 @@
* $FreeBSD: src/lib/msun/src/s_nan.c,v 1.2 2007/12/18 23:46:32 das Exp $
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/endian.h>
#include <ctype.h>
diff --git a/lib/libm/src/s_rint.c b/lib/libm/src/s_rint.c
index 262a8fab59e..8d0abc74afd 100644
--- a/lib/libm/src/s_rint.c
+++ b/lib/libm/src/s_rint.c
@@ -24,7 +24,7 @@ static char rcsid[] = "$NetBSD: s_rint.c,v 1.8 1995/05/10 20:48:04 jtc Exp $";
* Inexact flag raised if x not equal to rint(x).
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_scalbn.c b/lib/libm/src/s_scalbn.c
index 4fbbe8f9c55..065fbcb2dec 100644
--- a/lib/libm/src/s_scalbn.c
+++ b/lib/libm/src/s_scalbn.c
@@ -21,7 +21,7 @@ static char rcsid[] = "$NetBSD: s_scalbn.c,v 1.8 1995/05/10 20:48:08 jtc Exp $";
* exponentiation or a multiplication.
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_sin.c b/lib/libm/src/s_sin.c
index 9e4b729f13a..d788c8780e5 100644
--- a/lib/libm/src/s_sin.c
+++ b/lib/libm/src/s_sin.c
@@ -45,7 +45,7 @@ static char rcsid[] = "$NetBSD: s_sin.c,v 1.7 1995/05/10 20:48:15 jtc Exp $";
* TRIG(x) returns trig(x) nearly rounded
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>
diff --git a/lib/libm/src/s_tan.c b/lib/libm/src/s_tan.c
index 8855e79d71d..49fac96045f 100644
--- a/lib/libm/src/s_tan.c
+++ b/lib/libm/src/s_tan.c
@@ -44,7 +44,7 @@ static char rcsid[] = "$NetBSD: s_tan.c,v 1.7 1995/05/10 20:48:18 jtc Exp $";
* TRIG(x) returns trig(x) nearly rounded
*/
-#include <machine/cdefs.h>
+#include <sys/cdefs.h>
#include <float.h>
#include <math.h>