From 41876e8c376f43daa2325930c6d36b1cf20da1df Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 17 Aug 2012 09:18:00 +0900 Subject: [PATCH] Some compile fixes for when dlopen is not available. It seems the ps3 gameos build env is... not what we've come to take for granted. --- libs/util/plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/util/plugin.c b/libs/util/plugin.c index b4ffe651f..38235b62a 100644 --- a/libs/util/plugin.c +++ b/libs/util/plugin.c @@ -119,7 +119,7 @@ static void * pi_open_lib (const char *name, int global_syms) { void *dlhand; -#ifndef _WIN32 +#ifdef HAVE_DLOPEN # ifdef __OpenBSD__ int flags = RTLD_LAZY; # else @@ -154,7 +154,7 @@ pi_realname (char *realname, int size, const char *type, const char *name) #elif defined(_WIN32) const char *format = "%s/%s_%s.dll"; #else -# error "No shared library support. FIXME" + const char *format = "No shared library support. FIXME"; #endif snprintf (realname, size, format, fs_pluginpath->string, type, name);