diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-01-27T13·36+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-01-27T13·36+0000 |
commit | 061141e63256842bd72160a30302b31463222411 (patch) | |
tree | 4e97b3bf8f8d21876b1c3b53967868f0b86b8854 | |
parent | 019176137f49eba826e08c6b0f0a5c35ecdde81d (diff) |
* Make it compile on Debian 4.0 (which doesn't define PER_LINUX32_3GB
in sys/personality.h).
-rw-r--r-- | src/libstore/build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index aea4ccdc437b..6b1bc55f95df 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 |