aboutsummaryrefslogtreecommitdiffstats
path: root/src/dynlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dynlib.c')
-rw-r--r--src/dynlib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dynlib.c b/src/dynlib.c
index 47ffb418140..a41bed847bb 100644
--- a/src/dynlib.c
+++ b/src/dynlib.c
@@ -206,3 +206,13 @@ dynlib_close (dynlib_handle_ptr h)
206#error "No dynamic loading for this system" 206#error "No dynamic loading for this system"
207 207
208#endif 208#endif
209
210#if !HAVE_DLFUNC
211# define dlfunc dynlib_sym
212#endif
213
214dynlib_function_ptr
215dynlib_func (dynlib_handle_ptr h, const char *sym)
216{
217 return (dynlib_function_ptr) dlfunc (h, sym);
218}