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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user