From 061141e63256842bd72160a30302b31463222411 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 27 Jan 2009 13:36:59 +0000 Subject: [PATCH] * Make it compile on Debian 4.0 (which doesn't define PER_LINUX32_3GB in sys/personality.h). --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index aea4ccdc4..6b1bc55f9 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -1834,7 +1834,7 @@ void DerivationGoal::startBuilder() #ifdef CAN_DO_LINUX32_BUILDS if (drv.platform == "i686-linux" && thisSystem == "x86_64-linux") { - if (personality(PER_LINUX32_3GB) == -1) + if (personality(0x0008 | 0x8000000 /* == PER_LINUX32_3GB */) == -1) throw SysError("cannot set i686-linux personality"); } #endif