aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/cl_curl.c
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-02-17 13:46:34 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-02-17 13:46:34 +0000
commitc3c6c4a698ef4b1f8ac1beb430b95a97d6f4365b (patch)
treea2de18560a7f224cefb8fcf344db4df6d59d6562 /code/client/cl_curl.c
parentf209c48da0c8cf2a3989ddd786013c0aab74a97b (diff)
downloadioquake3-aero-c3c6c4a698ef4b1f8ac1beb430b95a97d6f4365b.tar.gz
ioquake3-aero-c3c6c4a698ef4b1f8ac1beb430b95a97d6f4365b.zip
Angst and zinx cajoled me into removing trying to load libcurl.so again.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1267 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/cl_curl.c')
-rw-r--r--code/client/cl_curl.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/code/client/cl_curl.c b/code/client/cl_curl.c
index 216d9cc..039b893 100644
--- a/code/client/cl_curl.c
+++ b/code/client/cl_curl.c
@@ -101,27 +101,21 @@ qboolean CL_cURL_Init()
#else
char fn[1024];
- // On some linux distributions there is no libcurl.so symlink, but only libcurl.so.4
-
- Q_strncpyz(fn, cl_cURLLib->string, sizeof(fn));
- strncat(fn, ".4", sizeof(fn)-strlen(fn)-1);
+ Q_strncpyz( fn, Sys_Cwd( ), sizeof( fn ) );
+ strncat(fn, "/", sizeof(fn)-strlen(fn)-1);
+ strncat(fn, cl_cURLLib->string, sizeof(fn)-strlen(fn)-1);
if((cURLLib = Sys_LoadLibrary(fn)) == 0)
{
- Q_strncpyz(fn, cl_cURLLib->string, sizeof(fn));
- strncat(fn, ".3", sizeof(fn)-strlen(fn)-1);
-
- if((cURLLib = Sys_LoadLibrary(fn)) == 0)
+#ifdef ALTERNATE_CURL_LIB
+ // On some linux distributions there is no libcurl.so.3, but only libcurl.so.4. That one works too.
+ if( (cURLLib = Sys_LoadLibrary(ALTERNATE_CURL_LIB)) == 0 )
{
- Q_strncpyz( fn, Sys_Cwd( ), sizeof( fn ) );
- strncat(fn, "/", sizeof(fn)-strlen(fn)-1);
- strncat(fn, cl_cURLLib->string, sizeof(fn)-strlen(fn)-1);
-
- if( (cURLLib = Sys_LoadLibrary(fn)) == 0 )
- {
- return qfalse;
- }
+ return qfalse;
}
+#else
+ return qfalse;
+#endif
}
#endif /* _WIN32 */
}