Skip to content

Commit 6c60c80

Browse files
committed
Add dummy defintion for Dl_info in case we're missing dladdr
1 parent 17f64b3 commit 6c60c80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/my_global.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,13 +1375,17 @@ static inline char *dlerror(void)
13751375
#endif
13761376
#ifndef HAVE_DLADDR
13771377
#define dladdr(A, B) 0
1378+
/* Dummy definition in case we're missing dladdr() */
1379+
typedef int Dl_info;
13781380
#endif
13791381
#else
13801382
#define dlerror() "No support for dynamic loading (static build?)"
13811383
#define dlopen(A,B) 0
13821384
#define dlsym(A,B) 0
13831385
#define dlclose(A) 0
13841386
#define dladdr(A, B) 0
1387+
/* Dummy definition in case we're missing dladdr() */
1388+
typedef int Dl_info;
13851389
#endif
13861390

13871391
/*

0 commit comments

Comments
 (0)