Allow PostgreSQL to run on Loongson.
With help of miod@ (thx !) ok jasper@
This commit is contained in:
parent
bfb6dfb4d3
commit
ec7eff9ad3
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.147 2011/03/17 16:49:27 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.148 2011/04/07 13:54:16 pea Exp $
|
||||
|
||||
COMMENT-main= PostgreSQL RDBMS (client)
|
||||
COMMENT-server= PostgreSQL RDBMS (server)
|
||||
@ -12,7 +12,7 @@ PKGNAME-server= postgresql-server-${VERSION}
|
||||
PKGNAME-docs= postgresql-docs-${VERSION}
|
||||
PKGNAME-contrib=postgresql-contrib-${VERSION}
|
||||
|
||||
REVISION-server= 2
|
||||
REVISION-server= 3
|
||||
|
||||
CATEGORIES= databases
|
||||
SHARED_LIBS= ecpg 7.2 \
|
||||
|
@ -0,0 +1,37 @@
|
||||
$OpenBSD: patch-src_backend_port_dynloader_openbsd_c,v 1.1 2011/04/07 13:54:16 pea Exp $
|
||||
|
||||
Remove old restrictions that no longer exist on OpenBSD.
|
||||
Without these, PostgreSQL can now run on mips platforms.
|
||||
|
||||
--- src/backend/port/dynloader/openbsd.c.orig Thu Apr 7 03:30:11 2011
|
||||
+++ src/backend/port/dynloader/openbsd.c Thu Apr 7 03:32:13 2011
|
||||
@@ -57,28 +57,18 @@ BSD44_derived_dlerror(void)
|
||||
void *
|
||||
BSD44_derived_dlopen(const char *file, int num)
|
||||
{
|
||||
-#if defined(__mips__)
|
||||
- snprintf(error_message, sizeof(error_message),
|
||||
- "dlopen (%s) not supported", file);
|
||||
- return NULL;
|
||||
-#else
|
||||
void *vp;
|
||||
|
||||
if ((vp = dlopen((char *) file, num)) == NULL)
|
||||
snprintf(error_message, sizeof(error_message),
|
||||
"dlopen (%s) failed: %s", file, dlerror());
|
||||
return vp;
|
||||
-#endif
|
||||
}
|
||||
|
||||
void *
|
||||
BSD44_derived_dlsym(void *handle, const char *name)
|
||||
{
|
||||
-#if defined(__mips__)
|
||||
- snprintf(error_message, sizeof(error_message),
|
||||
- "dlsym (%s) failed", name);
|
||||
- return NULL;
|
||||
-#elif defined(__ELF__)
|
||||
+#if defined(__ELF__)
|
||||
return dlsym(handle, name);
|
||||
#else
|
||||
void *vp;
|
Loading…
x
Reference in New Issue
Block a user