diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-05-25 18:44:00 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-05-25 18:44:00 +0000 |
commit | 9f2d15ac29a5ce7a43b10e74a22a2ef0e8a07d5e (patch) | |
tree | 44ba20be327bec2083df89f0d24db58ac94cb024 /games/egl/files/patch-linux__sys_linux.c | |
parent | Adding port net/p5-Net-FTP-File, a sub-classed replacement for Net::FTP with ... (diff) |
Enhaced OpenGL only Quake II engine.
WWW: http://egl.quakedev.com/
Approved by: garga (mentor, implicitly)
Diffstat (limited to 'games/egl/files/patch-linux__sys_linux.c')
-rw-r--r-- | games/egl/files/patch-linux__sys_linux.c | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/games/egl/files/patch-linux__sys_linux.c b/games/egl/files/patch-linux__sys_linux.c new file mode 100644 index 000000000000..fa2572fad7fb --- /dev/null +++ b/games/egl/files/patch-linux__sys_linux.c @@ -0,0 +1,58 @@ +--- ./linux/sys_linux.c.orig Tue May 23 20:05:59 2006 ++++ ./linux/sys_linux.c Tue May 23 20:06:00 2006 +@@ -43,10 +43,6 @@ + + #include "../common/common.h" + +-#if defined(__FreeBSD__) +-#include <machine/param.h> +-#endif +- + uint32 sys_frameTime; + int sys_currTime; + +@@ -607,7 +603,6 @@ + void *Sys_LoadLibrary (libType_t libType, void *parms) + { + char name[MAX_OSPATH]; +- char cwd[MAX_OSPATH]; + char *path; + void *(*APIfunc) (void *); + void **lib; +@@ -657,13 +652,13 @@ + switch (libType) { + case LIB_CGAME: + lib = &cGameLib; +- libname = "eglcgame" ARCH ".so"; ++ libname = "eglcgame.so"; + apifuncname = "GetCGameAPI"; + break; + + case LIB_GAME: + lib = &gameLib; +- libname = "game" ARCH ".so"; ++ libname = "game.so"; + apifuncname = "GetGameAPI"; + break; + +@@ -673,8 +668,7 @@ + } + + // check the current debug directory first for development purposes +- getcwd (cwd, sizeof(cwd)); +- Q_snprintfz (name, sizeof(name), "%s/%s/%s", cwd, debugdir, libname); ++ Q_snprintfz (name, sizeof(name), "%s/%s", debugdir, libname); + *lib = dlopen (name, RTLD_NOW); + + if (*lib) { +@@ -697,8 +691,10 @@ + Com_DevPrintf (0, "dlopen (%s)\n", name); + break; + } ++#if 0 + if (!*lib && (error = dlerror())) + Com_Printf (PRNT_ERROR, "dlopen (%s): %s\n", name, error); ++#endif + } + } + |