diff options
author | rsc <devnull@localhost> | 2005-07-27 13:06:50 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-07-27 13:06:50 +0000 |
commit | d08f40666b32fd5bce69f1b40ea18d2e52e97a26 (patch) | |
tree | 1f5f6155ec020049aefedaae4edfa738cef64433 /include | |
parent | 0e4068e8c46ae0b45616fe13ac01a449b68fbc06 (diff) | |
download | plan9port-d08f40666b32fd5bce69f1b40ea18d2e52e97a26.tar.gz plan9port-d08f40666b32fd5bce69f1b40ea18d2e52e97a26.tar.bz2 plan9port-d08f40666b32fd5bce69f1b40ea18d2e52e97a26.zip |
sun
Diffstat (limited to 'include')
-rw-r--r-- | include/u.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/u.h b/include/u.h index c5f5dcd0..59446be8 100644 --- a/include/u.h +++ b/include/u.h @@ -5,8 +5,14 @@ extern "C" { #endif #define __BSD_VISIBLE 1 /* FreeBSD 5.x */ -#define __EXTENSIONS__ 1 /* SunOS */ -/* NOT USING #define __MAKECONTEXT_V2_SOURCE 1 / * SunOS */ +#if defined(__sun__) +# define __EXTENSIONS__ 1 /* SunOS */ +# if defined(__SunOS5_6__) || defined(__SunOS5_7__) || defined(__SunOS5_8__) + /* NOT USING #define __MAKECONTEXT_V2_SOURCE 1 / * SunOS */ +# else +# define __MAKECONTEXT_V2_SOURCE 1 +# endif +#endif #define _BSD_SOURCE 1 #define _NETBSD_SOURCE 1 /* NetBSD */ #define _SVID_SOURCE 1 |