I'm not sure if the latest drop works for Series 2 TiVo, but it falls over dead for Series 1 TiVo even if I add the #define TARGET_OS_MAC 1 to config.h. Here are the additional needed changes:
In config.h, add the following:
#define TARGET_OS_MAC 1
#include "/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/headers/Endian.h"
Note: you could move this #include into every .c file and it would be okay, too, but I threw it in config.h because it is included pretty much everywhere. By including Endian.h manually, this solves the unresolved symbol error for Endian32_Swap (or maybe _Endian32_Swap).
In addition to these changes, you also must apply the attached patch.
Also, I'm placing Mac OS X patches for pdisk (derived from pdisk-tivo-a2 sources) and tpip (derived from tpip-1.2 sources) on my web site. For these patches, go to:
Mac OS X fixes for MFS Tools
Logged In: YES
user_id=189212
Originator: YES
Note: in case a non-C programmer is reading this, the #include line above should be one line. SF wraps it, but it should start with #include and end after the close quote mark two lines later. :-)