dladdr.h 459 B

1234567891011121314151617
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #include <dlfcn.h>
  5. #ifndef HAVE_DLADDR
  6. typedef struct {
  7. const char *dli_fname;
  8. void *dli_fbase;
  9. const char *dli_sname;
  10. void *dli_saddr;
  11. } Dl_info;
  12. extern int dladdr(void *addr, Dl_info *info) __attribute__((weak));
  13. #define HAVE_DLADDR 1
  14. #endif