aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-01-05 23:43:58 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-01-05 23:43:58 +0000
commit3bfbe9a7fd0e4d00f9d635aba780d0c10cd17174 (patch)
tree084bb08c4501db85b8d8edc2437ea510d54ddc92
parentd57d3626cb842c16396919ecd9e5b1ba87dd15a6 (diff)
downloadpostgresql-3bfbe9a7fd0e4d00f9d635aba780d0c10cd17174.tar.gz
postgresql-3bfbe9a7fd0e4d00f9d635aba780d0c10cd17174.zip
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>
-rw-r--r--src/backend/port/BSD44_derived/dl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/port/BSD44_derived/dl.c b/src/backend/port/BSD44_derived/dl.c
index 04f10544378..6184c70adf4 100644
--- a/src/backend/port/BSD44_derived/dl.c
+++ b/src/backend/port/BSD44_derived/dl.c
@@ -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);