aboutsummaryrefslogtreecommitdiffstats
path: root/ext/dl/dl.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/dl.h')
-rw-r--r--ext/dl/dl.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/dl/dl.h b/ext/dl/dl.h
index d06cad4e6b..da5695d3fa 100644
--- a/ext/dl/dl.h
+++ b/ext/dl/dl.h
@@ -3,6 +3,12 @@
#include <ruby.h>
+#ifdef USE_HEADER_HACKS
+#include <ffi/ffi.h>
+#else
+#include <ffi.h>
+#endif
+
#if !defined(FUNC_CDECL)
# define FUNC_CDECL(x) x
#endif
@@ -221,4 +227,9 @@ VALUE rb_dlptr_new(void *ptr, long size, freefunc_t func);
VALUE rb_dlptr_new2(VALUE klass, void *ptr, long size, freefunc_t func);
VALUE rb_dlptr_malloc(long size, freefunc_t func);
+VALUE rb_dl_set_last_error(VALUE self, VALUE val);
+#if defined(HAVE_WINDOWS_H)
+VALUE rb_dl_set_win32_last_error(VALUE self, VALUE val);
+#endif
+
#endif