Works perfectly now, I'll push an update soon to use the new build here: https://lutris.net/games/quake-2/
indeed, these constants seem to be specific to SDL2.
Ah well now something else broke X) ../linux/refresh.c: In function ‘GLimp_SetMode’: ../linux/refresh.c:168:23: error: ‘SDL_GL_CONTEXT_MAJOR_VERSION’ undeclared (first use in this function) SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, r_glMajorVersion->value); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../linux/refresh.c:168:23: note: each undeclared identifier is reported only once for each function it appears in ../linux/refresh.c:169:23: error: ‘SDL_GL_CONTEXT_MINOR_VERSION’ undeclared (first use in this...
Yep, that fixes one of the errors. There's still a #ifdef _WIN32 missing before line 204 in CL_PrepRefresh, commenting this line produces a successful build!
Nice! This error seems to be fixed! However I get another error at build time: client/cl_view.c.5.o: In function `CL_PrepRefresh': cl_view.c:(.text+0x4f8): undefined reference to `xiActiveController' cl_view.c:(.text+0x501): undefined reference to `SetRumble' client/cl_view.c.5.o: In function `V_RenderView': cl_view.c:(.text+0x1068): undefined reference to `xiActiveController' cl_view.c:(.text+0x1077): undefined reference to `SetRumble' cl_view.c:(.text+0x12fa): undefined reference to `xiActiveController'...
Linux build fails on latest trunk (glTexImage3D redeclaration)