1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-27 07:42:10 +03:00

Apply freebsd specific patches dealign with ELF system from FreeBSD's

ports collection ...
This commit is contained in:
Marc G. Fournier
1999-05-17 04:13:29 +00:00
parent 61f618e73e
commit a0b7daa129
5 changed files with 15 additions and 8 deletions

View File

@@ -83,11 +83,13 @@ BSD44_derived_dlsym(void *handle, const char *name)
void *vp;
char buf[BUFSIZ];
#ifndef __ELF__
if (*name != '_')
{
sprintf(buf, "_%s", name);
name = buf;
}
#endif
if ((vp = dlsym(handle, (char *) name)) == (void *) NULL)
sprintf(error_message, "dlsym (%s) failed", name);
return vp;