I can't seem to compile the Linux version of this. Because I don't want to bomb the database, I cut out the hopefully relevant parts:
$ make
gcc -Wall -O2 -fomit-frame-pointer -finline-functions -ffast-math -fno-exceptions -march=pentiumpro -I. -I.. -D__LINUX__ -DPCSX_VERSION=\"1.5\" -DPACKAGE=\"pcsx\" -DENABLE_NLS -D__i386__ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -c -o ../PsxBios.o ../PsxBios.c
In file included from ../PsxBios.c:25:
../PsxCommon.h:194: error: ‘MAX_PATH’ undeclared here (not in a function)
[...]
../PsxBios.c: In function ‘psxBiosFreeze’:
../PsxBios.c:2264: error: invalid lvalue in assignment
../PsxBios.c:2265: error: invalid lvalue in assignment
../PsxBios.c:2266: error: invalid lvalue in assignment
../PsxBios.c:2267: error: invalid lvalue in assignment
../PsxBios.c:2268: error: invalid lvalue in assignment
make: *** [../PsxBios.o] Error 1
$
Any help on this is of course highly appreciated.
I changed -O4 to -O2 (although I don't think this would change things in any way).
x86 (2.6.27.1), gcc 4.2.1, glibc 2.6.1