Fixes:
First, this is because of dlopen() and dlsym() having a char * in the system prototype. Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>
This commit is contained in:
parent
d57d3626cb
commit
3bfbe9a7fd
@ -66,7 +66,7 @@ BSD44_derived_dlopen(const char *file, int num)
|
||||
#else
|
||||
void *vp;
|
||||
|
||||
if ((vp = dlopen(file, num)) == (void *) NULL) {
|
||||
if ((vp = dlopen((char *) file, num)) == (void *) NULL) {
|
||||
(void) sprintf(error_message, "dlopen (%s) failed", file);
|
||||
}
|
||||
return(vp);
|
||||
@ -87,7 +87,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
|
||||
(void) sprintf(buf, "_%s", name);
|
||||
name = buf;
|
||||
}
|
||||
if ((vp = dlsym(handle, name)) == (void *) NULL) {
|
||||
if ((vp = dlsym(handle, (char *) name)) == (void *) NULL) {
|
||||
(void) sprintf(error_message, "dlsym (%s) failed", name);
|
||||
}
|
||||
return(vp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user