summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2005-04-02 17:31:42 +0000
committernetchild <netchild@FreeBSD.org>2005-04-02 17:31:42 +0000
commit02f22e6e2c170ac230a7ff0afa878825b54994e3 (patch)
tree840f394330714b96b2734b8b53c71a10abda0df1 /sys
parentdf5b67644e66655cf883e3bec1b900f2cbb95368 (diff)
downloadFreeBSD-src-02f22e6e2c170ac230a7ff0afa878825b54994e3.zip
FreeBSD-src-02f22e6e2c170ac230a7ff0afa878825b54994e3.tar.gz
The file machine/ieeefp.h needs sys/cdefs.h on amd64 and i386 after my
compiler features tests. This is ok, since machine/ieeefp.h is an internal interface. But floatingpoint.h is a public interface and some ports use it, so include sys/cdefs.h in the amd64 and i386 version of floatingpoint.h. Note: some architectures don't provide recursive inclusion protection in floatingpoint.h, namely alpha and ia64. Except for this part and now the include of sys/cdefs.h, all those files are equal (from a compiler POV), so they could be moved to only one version in src/include/. Approved by: joerg
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/include/floatingpoint.h1
-rw-r--r--sys/i386/include/floatingpoint.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/amd64/include/floatingpoint.h b/sys/amd64/include/floatingpoint.h
index fd328a9..cda9e46 100644
--- a/sys/amd64/include/floatingpoint.h
+++ b/sys/amd64/include/floatingpoint.h
@@ -37,6 +37,7 @@
#ifndef _FLOATINGPOINT_H_
#define _FLOATINGPOINT_H_
+#include <sys/cdefs.h>
#include <machine/ieeefp.h>
#endif /* !_FLOATINGPOINT_H_ */
diff --git a/sys/i386/include/floatingpoint.h b/sys/i386/include/floatingpoint.h
index fd328a9..cda9e46 100644
--- a/sys/i386/include/floatingpoint.h
+++ b/sys/i386/include/floatingpoint.h
@@ -37,6 +37,7 @@
#ifndef _FLOATINGPOINT_H_
#define _FLOATINGPOINT_H_
+#include <sys/cdefs.h>
#include <machine/ieeefp.h>
#endif /* !_FLOATINGPOINT_H_ */
OpenPOWER on IntegriCloud