ossp-uuid Contrib Patch - Mailing list pgsql-hackers

From David E. Wheeler
Subject ossp-uuid Contrib Patch
Date
Msg-id 62FDD311-1AFC-4296-95D8-5751D1407B71@justatheory.com
Whole thread Raw
Responses Re: ossp-uuid Contrib Patch
List pgsql-hackers
Hackers,

I ran into an issue building 9.2 with the OSSP UUID module today. A bit of Googling and I found that the MacPorts guys
raninto the same issue a few weeks ago. Their discussion: 
 https://trac.macports.org/ticket/35153

And the fix:

https://trac.macports.org/browser/trunk/dports/databases/postgresql91/files/postgresql-uuid-ossp.patch?rev=96142

So should we do this in core, too?

Oh, I see Tom already commented on it here:
 http://archives.postgresql.org/pgsql-general/2012-07/msg00656.php

I had installed 9.2rc1 a few weeks ago, but since then I upgraded to Mountain Lion. I suspect that is what mucked up
theunistd.h ordering issue. 

The patch:

diff --git a/contrib/uuid-ossp/uuid-ossp.c b/contrib/uuid-ossp/uuid-ossp.c
index d4fc62b..62b28ca 100644
--- a/contrib/uuid-ossp/uuid-ossp.c
+++ b/contrib/uuid-ossp/uuid-ossp.c
@@ -9,6 +9,7 @@ *------------------------------------------------------------------------- */
+#define _XOPEN_SOURCE#include "postgres.h"#include "fmgr.h"#include "utils/builtins.h"

Best,

David




pgsql-hackers by date:

Previous
From: Daniel Farina
Date:
Subject: Re: Proof of concept: standalone backend with full FE/BE protocol
Next
From: Tom Lane
Date:
Subject: Re: ossp-uuid Contrib Patch