aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-10-16 14:16:03 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-10-16 14:16:03 +0000
commit9d6d50269bef214473580a879f6194e02692fe16 (patch)
tree463c6382f058e03c65725dba1e4dc2db6a83d4ff /src/libstore/store-api.cc
parentfa61ee70ee80b2b223fae86ee197987aa70499b2 (diff)
* Bug fix for building on some old installations (contributed by Pjotr).
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 23631a3b8..ced5fd007 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -5,6 +5,12 @@
#include <limits.h>
+/* Needed for some ancient environments. */
+#ifndef ULLONG_MAX
+#define ULLONG_MAX 18446744073709551615
+#endif
+
+
namespace nix {