Skip to content

Commit

Permalink
PostgreSQL: build uuid-ossp with _XOPEN_SOURCE.
Browse files Browse the repository at this point in the history
Fixes build on Mountain Lion

Fixes Homebrew#10315.
Fixes Homebrew#13639.
Closes Homebrew#13803.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
Steven Schlansker authored and fgeller committed Aug 22, 2012
1 parent 7fb53eb commit 7618533
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Library/Formula/postgresql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ def options

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

Expand Down Expand Up @@ -218,3 +219,14 @@ def startup_plist
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"

0 comments on commit 7618533

Please sign in to comment.