mozglue/linker/dladdr.h
author Kim Moir <kmoir@mozilla.com>
Mon, 04 Jul 2016 20:21:10 -0400
changeset 333817 c2280cbee4ed9092158c59bd9ba224a3bf909afa
parent 94857 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 1135781 - generate builds per checkin on beta/release/esr that allow installation of unsigned addons r=jlund a=test-only

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include <dlfcn.h>

#ifndef HAVE_DLADDR
typedef struct {
  const char *dli_fname;
  void *dli_fbase;
  const char *dli_sname;
  void *dli_saddr;
} Dl_info;
extern int dladdr(void *addr, Dl_info *info) __attribute__((weak));
#define HAVE_DLADDR 1
#endif