postgres.git / summary / log / commit / refs
commit 8eb629aec6d93ef328fcd763b734d2639d47ab14
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: Wed Mar 05 19:42:11 2008 +0000
First released in: 8.4.0, 7.4.20, 8.0.16, 8.1.12, 8.2.7, 8.3.1
Add support for dlopen on recent NetBSD/MIPS, per Rémi Zara.
src/backend/port/dynloader/netbsd.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/port/dynloader/netbsd.c b/src/backend/port/dynloader/netbsd.c
index 93c95d676d8..a55f81cf088 100644
--- a/src/backend/port/dynloader/netbsd.c
+++ b/src/backend/port/dynloader/netbsd.c
@@ -3,7 +3,7 @@
* Portions Copyright (c) 1990 The Regents of the University of California.
* 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
* modification, are permitted provided that the following conditions
@@ -57,7 +57,7 @@ BSD44_derived_dlerror(void)
void *
BSD44_derived_dlopen(const char *file, int num)
{
-#if defined(__mips__)
+#if !defined(HAVE_DLOPEN)
snprintf(error_message, sizeof(error_message),
"dlopen (%s) not supported", file);
return NULL;
@@ -74,7 +74,7 @@ BSD44_derived_dlopen(const char *file, int num)
void *
BSD44_derived_dlsym(void *handle, const char *name)
{
-#if defined(__mips__)
+#if !defined(HAVE_DLOPEN)
snprintf(error_message, sizeof(error_message),
"dlsym (%s) failed", name);
return NULL;
@@ -99,7 +99,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
void
BSD44_derived_dlclose(void *handle)
{
-#if defined(__mips__)
+#if !defined(HAVE_DLOPEN)
#else
dlclose(handle);
#endif
[parent: 5b60c67bff8e]