aboutsummaryrefslogtreecommitdiff
path: root/src/rc-plugin.h
diff options
context:
space:
mode:
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