openbsd-ports/sysutils/gkrellm/patches/patch-src_plugins_c
2002-01-06 21:06:50 +00:00

14 lines
371 B
Plaintext

$OpenBSD: patch-src_plugins_c,v 1.2 2002/01/06 21:06:50 jcs Exp $
--- src/plugins.c.orig Sun Jan 6 14:47:33 2002
+++ src/plugins.c Sun Jan 6 14:47:52 2002
@@ -730,6 +730,9 @@
plugin_log(buf, NULL);
return NULL;
}
+#ifndef __ELF__
+#define dlsym(h,s) dlsym(h, "_" s)
+#endif
init_plugin = dlsym(handle, "init_plugin");
if ((error = dlerror()) != NULL)
{