OSSP CVS Repository

ossp - Check-in [5662]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 5662
Date: 2006-Nov-20 20:21:46 (local)
2006-Nov-20 19:21:46 (UTC)
User:rse
Branch:
Comment: Added PostgreSQL 8.2 PG_MODULE_MAGIC support.

Submitted by: David Wheeler <david@kineticode.com>

Tickets:
#126 Patches for PostgreSQL 8.2 and Mac OS X
Inspections:
Files:
ossp-pkg/uuid/ChangeLog      1.134 -> 1.135     3 inserted, 0 deleted
ossp-pkg/uuid/pgsql/uuid.c      1.5 -> 1.6     6 inserted, 0 deleted

ossp-pkg/uuid/ChangeLog 1.134 -> 1.135

--- ChangeLog    2006/11/20 18:17:33     1.134
+++ ChangeLog    2006/11/20 19:21:46     1.135
@@ -13,6 +13,9 @@
 
   Changes between 1.5.1 and 1.6.0 (31-Jul-2006 to 05-Oct-2006)
 
+   o Added PostgreSQL 8.2 PG_MODULE_MAGIC support.
+     [David Wheeler <david@kineticode.com>]
+
    o Fix the Data::UUID::to_b64string() function of the Perl backward
      compatibility API: an empty string was not supplied as the EOL
      marker to MIME::Base64::encode_base64() and hence the returned


ossp-pkg/uuid/pgsql/uuid.c 1.5 -> 1.6

--- uuid.c       2006/07/20 17:21:17     1.5
+++ uuid.c       2006/11/20 19:21:47     1.6
@@ -41,6 +41,12 @@
 #include "lib/stringinfo.h"
 #include "access/hash.h"
 
+/*  PostgreSQL module magic cookie
+    (PostgreSQL >= 8.2 only) */
+#ifdef PG_MODULE_MAGIC
+PG_MODULE_MAGIC;
+#endif
+
 /* internal UUID datum data structure */
 typedef struct {
     unsigned char uuid_bin[UUID_LEN_BIN];

CVSTrac 2.0.1