diff --git a/panda/src/vrpn/vrpnClient.h b/panda/src/vrpn/vrpnClient.h index c56d85a39b..389f122dc5 100644 --- a/panda/src/vrpn/vrpnClient.h +++ b/panda/src/vrpn/vrpnClient.h @@ -9,10 +9,15 @@ #include #include -#if defined(WIN32_VC) && defined(CPPPARSER) +#ifdef CPPPARSER // For correct interrogate parsing of UNC's vrpn library. - #define _WIN32 - #define SOCKET int + #ifdef WIN32_VC + #define _WIN32 + #define SOCKET int + #else + #define linux + typedef struct timeval timeval; + #endif #endif #include