summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-10-05 05:47:56 +0000
committermike <mike@FreeBSD.org>2002-10-05 05:47:56 +0000
commit029ec48b98d04eaf5f1bae459fb9743e72089cd7 (patch)
tree16f503636779c0c6eccf56240b74d47aeea52b72 /sys/powerpc
parent73863d0dcc71e55159a8e0187c1bcaba724a3a88 (diff)
downloadFreeBSD-src-029ec48b98d04eaf5f1bae459fb9743e72089cd7.zip
FreeBSD-src-029ec48b98d04eaf5f1bae459fb9743e72089cd7.tar.gz
Fix namespace issues by using visibility conditionals from
<sys/cdefs.h>.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/include/setjmp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/powerpc/include/setjmp.h b/sys/powerpc/include/setjmp.h
index f6d1378..e453044 100644
--- a/sys/powerpc/include/setjmp.h
+++ b/sys/powerpc/include/setjmp.h
@@ -6,6 +6,8 @@
#ifndef _MACHINE_SETJMP_H_
#define _MACHINE_SETJMP_H_
+#include <sys/cdefs.h>
+
#define _JBLEN 100
/*
@@ -13,7 +15,7 @@
* compile-time diagnostics for mismatches. The structs are the same
* internally to avoid some run-time errors for mismatches.
*/
-#ifndef _ANSI_SOURCE
+#if __BSD_VISIBLE || __POSIX_VISIBLE || __XSI_VISIBLE
typedef struct _sigjmp_buf { long _sjb[_JBLEN + 1]; } sigjmp_buf[1];
#endif
OpenPOWER on IntegriCloud