add GSSEAP_CONSTRUCTOR/DESTRUCTOR macro
authorLuke Howard <lukeh@padl.com>
Sat, 10 Sep 2011 17:49:27 +0000 (18:49 +0100)
committerLuke Howard <lukeh@padl.com>
Sat, 10 Sep 2011 17:49:27 +0000 (18:49 +0100)
moonshot/mech_eap/eap_mech.c
moonshot/mech_eap/util.h

index fb827dd..995a8ee 100644 (file)
@@ -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)
index 4c0756e..a27209f 100644 (file)
@@ -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;                                \