mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
* Don't use ULLONG_MAX in maxFreed - use 0 to mean "no limit".
18446744073709551615ULL breaks on GCC 3.3.6 (`integer constant is too large for "long" type').
This commit is contained in:
parent
92f525ecf4
commit
5dd8fb2069
4 changed files with 8 additions and 10 deletions
|
@ -5,12 +5,6 @@
|
|||
#include <limits.h>
|
||||
|
||||
|
||||
/* Needed for some ancient environments. */
|
||||
#ifndef ULLONG_MAX
|
||||
#define ULLONG_MAX 18446744073709551615ULL
|
||||
#endif
|
||||
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
||||
|
@ -18,7 +12,7 @@ GCOptions::GCOptions()
|
|||
{
|
||||
action = gcDeleteDead;
|
||||
ignoreLiveness = false;
|
||||
maxFreed = ULLONG_MAX;
|
||||
maxFreed = 0;
|
||||
maxLinks = 0;
|
||||
useAtime = false;
|
||||
maxAtime = (time_t) -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue