diff options
-rw-r--r-- | src/pam_radius_auth.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/pam_radius_auth.h b/src/pam_radius_auth.h index 7241117..e252ce9 100644 --- a/src/pam_radius_auth.h +++ b/src/pam_radius_auth.h @@ -76,17 +76,26 @@ typedef struct radius_conf_t { * Platform specific defines *************************************************************************/ -#ifdef sun -#define PAM_EXTERN extern +#ifndef CONST +# if defined(__sun) || defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) /* * On older versions of Solaris, you may have to change this to: * #define CONST */ -#define CONST const +# define CONST const #else -#define CONST const +# define CONST #endif +#ifndef PAM_EXTERN +# ifdef __sun +# define PAM_EXTERN extern +# else +# define PAM_EXTERN +# endif +#endif + + /************************************************************************* * Useful macros and defines *************************************************************************/ |