pg.ddx.io  pgsql-testers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: postgresql@raveland.org
To: pgsql-testers@postgresql.org
Subject: [PostgreSQL 9.1 alpha5] OpenBSD and Loongson
Date: Thu, 7 Apr 2011 16:22:46 +0200
Message-ID: <20110407142245.GA4870@coredump.raveland.priv> (raw)

Hi,

I need the following patch to make PostgreSQL happy 
on Loongson with OpenBSD (http://www.openbsd.org/loongson.html).
These restrictions no longer exist on OpenBSD.
Tested with the latest alpha (9.1 alpha5) and with 
the latest 9 release (9.0.3).

Regards,

Attachments:

patch-src_backend_port_dynloader_openbsd_c (text/plain, 863B) download $OpenBSD$ --- 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;

Message-ID: <20110407142245.GA4870@coredump.raveland.priv>
Permalink:  ../20110407142245.GA4870@coredump.raveland.priv/
Also on:    postgresql.org/message-id/20110407142245.GA4870@coredump.raveland.priv

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-testers@postgresql.org
  Cc: postgresql@raveland.org
  Subject: Re: [PostgreSQL 9.1 alpha5] OpenBSD and Loongson
  In-Reply-To: <20110407142245.GA4870@coredump.raveland.priv>
  References: <20110407142245.GA4870@coredump.raveland.priv>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox