diff options
author | Arran Cudbard-Bell <a.cudbardb@freeradius.org> | 2014-05-25 10:45:02 +0100 |
---|---|---|
committer | Arran Cudbard-Bell <a.cudbardb@freeradius.org> | 2014-05-25 10:45:02 +0100 |
commit | 71e753c34e9911d3a873e104bac6d5c2155e73ad (patch) | |
tree | 5af64cd87d44fcadd1687d9db96fb6ca7e61ceb6 | |
parent | 73694844083f9ca9ce6d0bc0cadfba000529891b (diff) | |
download | libpam-radius-auth-71e753c34e9911d3a873e104bac6d5c2155e73ad.tar.gz libpam-radius-auth-71e753c34e9911d3a873e104bac6d5c2155e73ad.zip |
Hack until we have time to write an autoconf check
-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 *************************************************************************/ |