Skip to content

Commit 8eb629a

Browse files
committed
Add support for dlopen on recent NetBSD/MIPS, per Rémi Zara.
1 parent 5b60c67 commit 8eb629a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/port/dynloader/netbsd.c

Lines changed: 4 additions & 4 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.23 2008/03/05 19:42:11 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,7 +99,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
9999
void
100100
BSD44_derived_dlclose(void *handle)
101101
{
102-
#if defined(__mips__)
102+
#if !defined(HAVE_DLOPEN)
103103
#else
104104
dlclose(handle);
105105
#endif

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