* Make it compile on Debian 4.0 (which doesn't define PER_LINUX32_3GB

in sys/personality.h).
This commit is contained in:
Eelco Dolstra 2009-01-27 13:36:59 +00:00
parent 019176137f
commit 061141e632

View file

@ -1834,7 +1834,7 @@ void DerivationGoal::startBuilder()
#ifdef CAN_DO_LINUX32_BUILDS #ifdef CAN_DO_LINUX32_BUILDS
if (drv.platform == "i686-linux" && thisSystem == "x86_64-linux") { 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"); throw SysError("cannot set i686-linux personality");
} }
#endif #endif