Commit 6c60c809 authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Add dummy defintion for Dl_info in case we're missing dladdr

parent 17f64b36
......@@ -1375,6 +1375,8 @@ static inline char *dlerror(void)
#endif
#ifndef HAVE_DLADDR
#define dladdr(A, B) 0
/* Dummy definition in case we're missing dladdr() */
typedef int Dl_info;
#endif
#else
#define dlerror() "No support for dynamic loading (static build?)"
......@@ -1382,6 +1384,8 @@ static inline char *dlerror(void)
#define dlsym(A,B) 0
#define dlclose(A) 0
#define dladdr(A, B) 0
/* Dummy definition in case we're missing dladdr() */
typedef int Dl_info;
#endif
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment