From cd77baf2e2f75b4ae141414bf8ff6d5c732e2b9a Mon Sep 17 00:00:00 2001 From: Steven Schlansker Date: Mon, 30 Jul 2012 18:39:51 -0700 Subject: PostgreSQL: build uuid-ossp with _XOPEN_SOURCE. Fixes build on Mountain Lion Fixes #10315. Fixes #13639. Closes #13803. Signed-off-by: Adam Vandenberg --- Library/Formula/postgresql.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb index bc822c964..410d770df 100644 --- a/Library/Formula/postgresql.rb +++ b/Library/Formula/postgresql.rb @@ -21,8 +21,9 @@ class Postgresql < Formula skip_clean :all + # Fix PL/Python build: https://github.com/mxcl/homebrew/issues/11162 + # Fix uuid-ossp build issues: http://archives.postgresql.org/pgsql-general/2012-07/msg00654.php def patches - # Fix PL/Python build: https://github.com/mxcl/homebrew/issues/11162 DATA end @@ -218,3 +219,14 @@ __END__ endif # If we don't have a shared library and the platform doesn't allow it +--- a/contrib/uuid-ossp/uuid-ossp.c 2012-07-30 18:34:53.000000000 -0700 ++++ b/contrib/uuid-ossp/uuid-ossp.c 2012-07-30 18:35:03.000000000 -0700 +@@ -9,6 +9,8 @@ + *------------------------------------------------------------------------- + */ + ++#define _XOPEN_SOURCE ++ + #include "postgres.h" + #include "fmgr.h" + #include "utils/builtins.h" -- cgit v1.2.3