From 9d6d50269bef214473580a879f6194e02692fe16 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 16 Oct 2008 14:16:03 +0000 Subject: * Bug fix for building on some old installations (contributed by Pjotr). --- src/libstore/store-api.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libstore/store-api.cc') 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 +/* Needed for some ancient environments. */ +#ifndef ULLONG_MAX +#define ULLONG_MAX 18446744073709551615 +#endif + + namespace nix { -- cgit v1.2.3