aboutsummaryrefslogtreecommitdiff
path: root/src/rc-plugin.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-05-14 19:50:13 +0000
committerRoy Marples <roy@marples.name>2007-05-14 19:50:13 +0000
commitf3888d76138c9f347e118e3942d5a1dd49b351ff (patch)
treeb2c20c5d6643a050a088595bc74448ecfa2f86a1 /src/rc-plugin.h
parentd0308aaecd1cb2f1c620a742f2fbaee00cb03c04 (diff)
Implement FreeBSD's dlfunc function to avoid ISO warnings on dlsym - thanks to drizztbsd for find public domain code :)
Diffstat (limited to 'src/rc-plugin.h')
-rw-r--r--src/rc-plugin.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rc-plugin.h b/src/rc-plugin.h
index b4391ad0..15d46213 100644
--- a/src/rc-plugin.h
+++ b/src/rc-plugin.h
@@ -12,4 +12,15 @@ void rc_plugin_load ();
void rc_plugin_unload ();
void rc_plugin_run (rc_hook_t, const char *value);
+/* dlfunc defines needed to avoid ISO errors. FreeBSD has this right :) */
+#ifndef __FreeBSD__
+struct __dlfunc_arg {
+ int __dlfunc_dummy;
+};
+
+typedef void (*dlfunc_t) (struct __dlfunc_arg);
+
+dlfunc_t dlfunc (void * __restrict handle, const char * __restrict symbol);
+#endif
+
#endif