summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2012-12-04 05:00:40 +0000
committerderaadt <deraadt@openbsd.org>2012-12-04 05:00:40 +0000
commit7430e2d04e2a4475010ee16041a28c53b49a2052 (patch)
tree595010f51ed6396c89dfca51e5d62ec23dd07ee4
parentonly needs sys/types.h not sys/param.h (diff)
downloadwireguard-openbsd-7430e2d04e2a4475010ee16041a28c53b49a2052.tar.xz
wireguard-openbsd-7430e2d04e2a4475010ee16041a28c53b49a2052.zip
Only pull in sys/cdefs.h if needed
ok miod
-rw-r--r--sys/arch/mips64/include/fpu.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/mips64/include/fpu.h b/sys/arch/mips64/include/fpu.h
index 343950a8a90..aa54fc885cc 100644
--- a/sys/arch/mips64/include/fpu.h
+++ b/sys/arch/mips64/include/fpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpu.h,v 1.1 2010/09/17 00:34:05 miod Exp $ */
+/* $OpenBSD: fpu.h,v 1.2 2012/12/04 05:00:40 deraadt Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
@@ -57,15 +57,17 @@
#define FPCSR_F_SHIFT 2
#define FPCSR_RM_MASK 0x00000003 /* rounding mode */
+#ifndef _KERNEL
+
/*
* IRIX-compatible interfaces allowing userland to control the state
* of the floating-point control/status register. These are intended
* to let userland control the state of the FS bit.
*/
-
#include <sys/cdefs.h>
__BEGIN_DECLS
int get_fpc_csr(void);
int set_fpc_csr(int);
__END_DECLS
+#endif /* _KERNEL */