add GSSEAP_CONSTRUCTOR/DESTRUCTOR macro
[mech_eap.orig] / mech_eap / util.h
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;                                \