From 45784a92fca96a690034b94f3b1969decd0acb1e Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sat, 10 Sep 2011 18:49:27 +0100 Subject: [PATCH] add GSSEAP_CONSTRUCTOR/DESTRUCTOR macro --- mech_eap/eap_mech.c | 4 ++-- mech_eap/util.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mech_eap/eap_mech.c b/mech_eap/eap_mech.c index fb827dd..995a8ee 100644 --- a/mech_eap/eap_mech.c +++ b/mech_eap/eap_mech.c @@ -165,8 +165,8 @@ gssEapInitLibRadsec(OM_uint32 *minor) return GSS_S_COMPLETE; } -static void gssEapInitiatorInit(void) __attribute__((constructor)); -static void gssEapFinalize(void) __attribute__((destructor)); +static void gssEapInitiatorInit(void) GSSEAP_CONSTRUCTOR; +static void gssEapFinalize(void) GSSEAP_DESTRUCTOR; static void gssEapInitiatorInit(void) diff --git a/mech_eap/util.h b/mech_eap/util.h index 4c0756e..a27209f 100644 --- a/mech_eap/util.h +++ b/mech_eap/util.h @@ -748,6 +748,9 @@ verifyTokenHeader(OM_uint32 *minor, #define GSSAPI_CALLCONV KRB5_CALLCONV #endif +#define GSSEAP_CONSTRUCTOR __attribute__((constructor)) +#define GSSEAP_DESTRUCTOR __attribute__((destructor)) + #define GSSEAP_NOT_IMPLEMENTED do { \ assert(0 && "not implemented"); \ *minor = ENOSYS; \ -- 2.1.4