summaryrefslogtreecommitdiff
path: root/databases/postgresql81/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql81/patches/patch-ad')
-rw-r--r--databases/postgresql81/patches/patch-ad13
1 files changed, 6 insertions, 7 deletions
diff --git a/databases/postgresql81/patches/patch-ad b/databases/postgresql81/patches/patch-ad
index a0e4fa1043a..fa694ab7da1 100644
--- a/databases/postgresql81/patches/patch-ad
+++ b/databases/postgresql81/patches/patch-ad
@@ -1,8 +1,8 @@
-$NetBSD: patch-ad,v 1.1.1.1 2006/03/20 14:45:49 uebayasi Exp $
+$NetBSD: patch-ad,v 1.2 2008/06/20 08:27:57 adam Exp $
---- src/backend/port/dynloader/netbsd.c.orig 2005-07-07 01:55:58.000000000 +0900
+--- src/backend/port/dynloader/netbsd.c.orig 2008-06-20 09:58:20.000000000 +0200
+++ src/backend/port/dynloader/netbsd.c
-@@ -44,65 +44,30 @@ static char sccsid[] = "@(#)dl.c 5.4 (Be
+@@ -44,64 +44,30 @@ static char sccsid[] = "@(#)dl.c 5.4 (Be
#include "dynloader.h"
@@ -25,7 +25,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2006/03/20 14:45:49 uebayasi Exp $
-BSD44_derived_dlopen(const char *file, int num)
+pg_dlopen(const char *file, int num)
{
--#if defined(__mips__)
+-#if !defined(HAVE_DLOPEN)
- snprintf(error_message, sizeof(error_message),
- "dlopen (%s) not supported", file);
+ elog(ERROR, "dynamic load not supported");
@@ -44,7 +44,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2006/03/20 14:45:49 uebayasi Exp $
-BSD44_derived_dlsym(void *handle, const char *name)
+pg_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;
@@ -70,8 +70,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2006/03/20 14:45:49 uebayasi Exp $
-BSD44_derived_dlclose(void *handle)
+pg_dlclose(void *handle)
{
--#if defined(__mips__)
--#else
+-#if defined(HAVE_DLOPEN)
- dlclose(handle);
-#endif
}