mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Add support for dlopen on recent NetBSD/MIPS, per Rémi Zara.
This commit is contained in:
parent
5b60c67bff
commit
8eb629aec6
@ -3,7 +3,7 @@
|
|||||||
* Portions Copyright (c) 1990 The Regents of the University of California.
|
* Portions Copyright (c) 1990 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/backend/port/dynloader/netbsd.c,v 1.22 2008/01/01 19:45:51 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/port/dynloader/netbsd.c,v 1.23 2008/03/05 19:42:11 alvherre Exp $
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@ -57,7 +57,7 @@ BSD44_derived_dlerror(void)
|
|||||||
void *
|
void *
|
||||||
BSD44_derived_dlopen(const char *file, int num)
|
BSD44_derived_dlopen(const char *file, int num)
|
||||||
{
|
{
|
||||||
#if defined(__mips__)
|
#if !defined(HAVE_DLOPEN)
|
||||||
snprintf(error_message, sizeof(error_message),
|
snprintf(error_message, sizeof(error_message),
|
||||||
"dlopen (%s) not supported", file);
|
"dlopen (%s) not supported", file);
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -74,7 +74,7 @@ BSD44_derived_dlopen(const char *file, int num)
|
|||||||
void *
|
void *
|
||||||
BSD44_derived_dlsym(void *handle, const char *name)
|
BSD44_derived_dlsym(void *handle, const char *name)
|
||||||
{
|
{
|
||||||
#if defined(__mips__)
|
#if !defined(HAVE_DLOPEN)
|
||||||
snprintf(error_message, sizeof(error_message),
|
snprintf(error_message, sizeof(error_message),
|
||||||
"dlsym (%s) failed", name);
|
"dlsym (%s) failed", name);
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -99,7 +99,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
|
|||||||
void
|
void
|
||||||
BSD44_derived_dlclose(void *handle)
|
BSD44_derived_dlclose(void *handle)
|
||||||
{
|
{
|
||||||
#if defined(__mips__)
|
#if !defined(HAVE_DLOPEN)
|
||||||
#else
|
#else
|
||||||
dlclose(handle);
|
dlclose(handle);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user