Skip to content

Commit

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

Fixes issue Homebrew#10315, issue Homebrew#13639.
  • Loading branch information
Steven Schlansker committed Jul 31, 2012
1 parent 1754403 commit d86e17c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Library/Formula/postgresql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,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 d86e17c

Please sign in to comment.