From 04b5c11de37e4c525cd9f019ae2e1534fb6f8cda Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Wed, 5 Mar 2008 21:20:48 +0000 Subject: [PATCH] =?UTF-8?q?Add=20support=20for=20dlopen=20on=20recent=20Ne?= =?UTF-8?q?tBSD/MIPS,=20per=20R=C3=A9mi=20Zara.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/port/dynloader/netbsd.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/backend/port/dynloader/netbsd.c b/src/backend/port/dynloader/netbsd.c index ff09c65538c..5c80f59c986 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.19 2006/03/11 04:38:31 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/port/dynloader/netbsd.c,v 1.19.2.1 2008/03/05 21:20:48 alvherre Exp $ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -61,7 +61,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; @@ -78,7 +78,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; @@ -103,8 +103,7 @@ BSD44_derived_dlsym(void *handle, const char *name) void BSD44_derived_dlclose(void *handle) { -#if defined(__mips__) -#else +#if defined(HAVE_DLOPEN) dlclose(handle); #endif }