Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id ACFD71337C25 for ; Thu, 7 Apr 2011 12:03:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 64507-05-5 for ; Thu, 7 Apr 2011 15:03:00 +0000 (UTC) X-Greylist: delayed 00:06:19.139836 by SQLgrey-1.7.6 Received: from mail.raveland.org (puffy.raveland.org [195.200.166.230]) by mail.postgresql.org (Postfix) with ESMTP id 52A191337F66 for ; Thu, 7 Apr 2011 11:29:58 -0300 (ADT) Received: from coredump.raveland.priv (unknown [195.200.191.144]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: pea@raveland.org) by mail.raveland.org (Postfix) with ESMTPSA id 8124813D306 for ; Thu, 7 Apr 2011 16:23:37 +0200 (CEST) Date: Thu, 7 Apr 2011 16:22:46 +0200 From: postgresql@raveland.org To: pgsql-testers@postgresql.org Subject: [PostgreSQL 9.1 alpha5] OpenBSD and Loongson Message-ID: <20110407142245.GA4870@coredump.raveland.priv> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline X-Operating-System: OpenBSD 4.9 amd64 User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/2 X-Sequence-Number: 219 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline 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, --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: attachment; filename=patch-src_backend_port_dynloader_openbsd_c $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; --WIyZ46R2i8wDzkSu--