From: Kevin Wasserman Date: Tue, 21 Jun 2011 14:00:06 +0000 (-0400) Subject: Other Windows changes and debug comments X-Git-Tag: tr-beta1~106^2~13 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=commitdiff_plain;h=12a3e80e763949b8b9b96263ca32d2ff45127d07 Other Windows changes and debug comments This patch is fixing remaining compilation errors. It also emphasizes other things that need fixing on Windows. --- diff --git a/moonshot/mech_eap/gssapiP_eap.h b/moonshot/mech_eap/gssapiP_eap.h index e843696..956fc3b 100644 --- a/moonshot/mech_eap/gssapiP_eap.h +++ b/moonshot/mech_eap/gssapiP_eap.h @@ -85,6 +85,13 @@ extern "C" { #endif #include #include + +////Because freeradius/autoconf.h is evil! +////#undef uint16_t +////#undef uint32_t +////#undef uint8_t +#undef pid_t + #include #include #ifdef __cplusplus diff --git a/moonshot/mech_eap/util_radius.h b/moonshot/mech_eap/util_radius.h index 04e6fc5..82d12cb 100644 --- a/moonshot/mech_eap/util_radius.h +++ b/moonshot/mech_eap/util_radius.h @@ -154,6 +154,7 @@ OM_uint32 gssEapRadiusMapError(OM_uint32 *minor, struct rs_error *err); +////This really need to be a function call on Windows #define RS_CONFIG_FILE SYSCONFDIR "/radsec.conf" #define VENDORPEC_MS 311 /* RFC 2548 */ diff --git a/moonshot/mech_eap/win32/config.h b/moonshot/mech_eap/win32/config.h index f28a0cf..efd99c9 100644 --- a/moonshot/mech_eap/win32/config.h +++ b/moonshot/mech_eap/win32/config.h @@ -47,6 +47,13 @@ /* Define to 1 if you have the header file. */ /* #undef HAVE_UNISTD_H */ +#define SYSCONFDIR "c:\\Program Files\\Moonshot\\etc" + +////This messes up freeradius, if defined here +///#if !defined(snprintf) +///#define snprintf _snprintf +///#endif + /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #define LT_OBJDIR ".libs/"