Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8eb629a

Browse files
committed
Add support for dlopen on recent NetBSD/MIPS, per Rémi Zara.
1 parent5b60c67 commit8eb629a

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(constchar*file,intnum)
5959
{
60-
#if defined(__mips__)
60+
#if!defined(HAVE_DLOPEN)
6161
snprintf(error_message,sizeof(error_message),
6262
"dlopen (%s) not supported",file);
6363
returnNULL;
@@ -74,7 +74,7 @@ BSD44_derived_dlopen(const char *file, int num)
7474
void*
7575
BSD44_derived_dlsym(void*handle,constchar*name)
7676
{
77-
#if defined(__mips__)
77+
#if!defined(HAVE_DLOPEN)
7878
snprintf(error_message,sizeof(error_message),
7979
"dlsym (%s) failed",name);
8080
returnNULL;
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp