diff options
| author | Steven Schlansker | 2012-07-30 18:39:51 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-07-31 07:05:33 -0700 |
| commit | cd77baf2e2f75b4ae141414bf8ff6d5c732e2b9a (patch) | |
| tree | 863bd4b69aee38ba9e684b7fa455623316c90ac1 /Library/Formula | |
| parent | fc3adf98c457d77e7d10dcb76f2b2526d04f975c (diff) | |
| download | homebrew-cd77baf2e2f75b4ae141414bf8ff6d5c732e2b9a.tar.bz2 | |
PostgreSQL: build uuid-ossp with _XOPEN_SOURCE.
Fixes build on Mountain Lion
Fixes #10315.
Fixes #13639.
Closes #13803.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/postgresql.rb | 14 |
1 files changed, 13 insertions, 1 deletions
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" |
