michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include michael@0: michael@0: #ifndef HAVE_DLADDR michael@0: typedef struct { michael@0: const char *dli_fname; michael@0: void *dli_fbase; michael@0: const char *dli_sname; michael@0: void *dli_saddr; michael@0: } Dl_info; michael@0: extern int dladdr(void *addr, Dl_info *info) __attribute__((weak)); michael@0: #define HAVE_DLADDR 1 michael@0: #endif