From 5e1ea06c0f476261b673a5e037d5b0216dc08ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 1 Apr 2010 09:26:29 +0000 Subject: [PATCH] boehm-gc: Fix x86_64-darwin builds. svn path=/nixpkgs/trunk/; revision=20900 --- pkgs/development/libraries/boehm-gc/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/boehm-gc/default.nix b/pkgs/development/libraries/boehm-gc/default.nix index 0983edbcdd28..025ad6c1dc86 100644 --- a/pkgs/development/libraries/boehm-gc/default.nix +++ b/pkgs/development/libraries/boehm-gc/default.nix @@ -44,3 +44,10 @@ stdenv.mkDerivation { platforms = stdenv.lib.platforms.all; }; } + +// + +(if stdenv.system == "x86_64-darwin" + # Fix "#error ucontext routines are deprecated, and require _XOPEN_SOURCE to be defined". + then { configureFlags = "CPPFLAGS=-D_XOPEN_SOURCE"; } + else {})