about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-10-16T14·16+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-10-16T14·16+0000
commit9d6d50269bef214473580a879f6194e02692fe16 (patch)
tree463c6382f058e03c65725dba1e4dc2db6a83d4ff /src/libstore
parentfa61ee70ee80b2b223fae86ee197987aa70499b2 (diff)
* Bug fix for building on some old installations (contributed by Pjotr).
Diffstat (limited to 'src/libstore')
-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 23631a3b8e9c..ced5fd0072e8 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 {