]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fixes:
authorMarc G. Fournier <scrappy@hub.org>
Sun, 5 Jan 1997 23:43:58 +0000 (23:43 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Sun, 5 Jan 1997 23:43:58 +0000 (23:43 +0000)
  First, this is because of dlopen() and dlsym() having a char *
in the system prototype.

Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>

src/backend/port/BSD44_derived/dl.c

index 04f10544378dc53c524314571940441267a464ea..6184c70adf432f2437737c62bedde0af85b38412 100644 (file)
@@ -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);