diff --git a/src/backends/regex_debug.c b/src/backends/regex_debug.c index 8e54f5c..d28f9b2 100644 --- a/src/backends/regex_debug.c +++ b/src/backends/regex_debug.c @@ -3,13 +3,16 @@ #include #include +#define USE_DLADDR (0) - +#if USE_DLADDR // This is some spectacularly non-portable code... but whee! #include -char* getsym(void* addr) { +#endif + +char* getsym(HSVMActionFunc addr) { char* retstr; -#if 0 +#if USE_DLADDR // This will be fixed later. Dl_info dli; if (dladdr(addr, &dli) != 0 && dli.dli_sname != NULL) {