| 1 |
/* src/include/port/solaris.h */ |
| 2 |
|
| 3 |
/* |
| 4 |
* Sort this out for all operating systems some time. The __xxx |
| 5 |
* symbols are defined on both GCC and Solaris CC, although GCC |
| 6 |
* doesn't document them. The __xxx__ symbols are only on GCC. |
| 7 |
*/ |
| 8 |
#if defined(__i386) && !defined(__i386__) |
| 9 |
#define __i386__ |
| 10 |
#endif |
| 11 |
|
| 12 |
#if defined(__amd64) && !defined(__amd64__) |
| 13 |
#define __amd64__ |
| 14 |
#endif |
| 15 |
|
| 16 |
#if defined(__x86_64) && !defined(__x86_64__) |
| 17 |
#define __x86_64__ |
| 18 |
#endif |
| 19 |
|
| 20 |
#if defined(__sparc) && !defined(__sparc__) |
| 21 |
#define __sparc__ |
| 22 |
#endif |
| 23 |
|
| 24 |
#if defined(__i386__) |
| 25 |
#include <sys/isa_defs.h> |
| 26 |
#endif |
| 27 |
|
| 28 |
/* |
| 29 |
* On original Solaris, PAM conversation procs lack a "const" in their |
| 30 |
* declaration; but recent OpenIndiana versions put it there by default. |
| 31 |
* The least messy way to deal with this is to define _PAM_LEGACY_NONCONST, |
| 32 |
* which causes OpenIndiana to declare pam_conv per the Solaris tradition, |
| 33 |
* and also use that symbol to control omitting the "const" in our own code. |
| 34 |
*/ |
| 35 |
#define _PAM_LEGACY_NONCONST 1 |