--- lib/avifile/AviWrite.cpp.orig Mon Sep 11 15:40:31 2000 +++ lib/avifile/AviWrite.cpp Wed Sep 13 20:52:55 2000 @@ -19,7 +19,11 @@ try { m_status=0; +#ifdef O_LARGEFILE m_fd=open(name, O_WRONLY | O_CREAT | O_TRUNC | O_LARGEFILE, mask); +#else + m_fd=open(name, O_WRONLY | O_CREAT | O_TRUNC, mask); +#endif if(m_fd==-1) throw FATAL("Can't open file for writing"); @@ -203,7 +207,11 @@ } long long AviWriteFile::FileSize() { +#ifdef __Linux__ return lseek64(m_fd, 0, SEEK_CUR); +#else + return lseek(m_fd, 0, SEEK_CUR); +#endif } AviWriteStream::AviWriteStream --- lib/videocodec/Module.h.orig Sat Sep 9 14:24:49 2000 +++ lib/videocodec/Module.h Wed Sep 13 20:20:25 2000 @@ -4,6 +4,10 @@ #include #include #include +#ifdef __FreeBSD__ +#include +#endif + using namespace std; class VideoCodecControl; --- player/renderer.cpp.orig Mon Sep 11 08:38:07 2000 +++ player/renderer.cpp Fri Sep 15 20:22:55 2000 @@ -11,6 +11,7 @@ #ifdef __FreeBSD__ #include #include +#include #endif #include #include --- lib/aviplay/aviutil.cpp.orig Sat Sep 16 13:49:08 2000 +++ lib/aviplay/aviutil.cpp Sat Sep 16 13:54:06 2000 @@ -28,16 +28,18 @@ } CPU_Freq::CPU_Freq() { - FILE *f = fopen ("/proc/cpuinfo", "r"); char line[200]; char model[200]="unknown"; char flags[500]=""; char *s,*value; +#ifdef __FreeBSD__ + freq=old_freq(); + cerr<