Skip to content

Commit 7a069ea

Browse files
committed
Add support for dlopen on recent NetBSD/MIPS, per Rémi Zara.
1 parent ae90329 commit 7a069ea

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/backend/port/dynloader/netbsd.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Portions Copyright (c) 1990 The Regents of the University of California.
44
* All rights reserved.
55
*
6-
* $PostgreSQL: pgsql/src/backend/port/dynloader/netbsd.c,v 1.22 2008/01/01 19:45:51 momjian Exp $
6+
* $PostgreSQL: pgsql/src/backend/port/dynloader/netbsd.c,v 1.22.2.1 2008/03/05 21:20:47 alvherre Exp $
77
*
88
* Redistribution and use in source and binary forms, with or without
99
* modification, are permitted provided that the following conditions
@@ -57,7 +57,7 @@ BSD44_derived_dlerror(void)
5757
void *
5858
BSD44_derived_dlopen(const char *file, int num)
5959
{
60-
#if defined(__mips__)
60+
#if !defined(HAVE_DLOPEN)
6161
snprintf(error_message, sizeof(error_message),
6262
"dlopen (%s) not supported", file);
6363
return NULL;
@@ -74,7 +74,7 @@ BSD44_derived_dlopen(const char *file, int num)
7474
void *
7575
BSD44_derived_dlsym(void *handle, const char *name)
7676
{
77-
#if defined(__mips__)
77+
#if !defined(HAVE_DLOPEN)
7878
snprintf(error_message, sizeof(error_message),
7979
"dlsym (%s) failed", name);
8080
return NULL;
@@ -99,8 +99,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
9999
void
100100
BSD44_derived_dlclose(void *handle)
101101
{
102-
#if defined(__mips__)
103-
#else
102+
#if defined(HAVE_DLOPEN)
104103
dlclose(handle);
105104
#endif
106105
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy