Include config.h before any other header

"config.h" must be included first, because otherwise the compiler
might not see the right value of _FILE_OFFSET_BITS.  We've had this
before; see 705868a8a9.  In this case,
GCC would compute a different address for ‘settings.useSubstitutes’ in
misc.cc because of the off_t in ‘settings’.

Reverts 3854fc9b42.

http://hydra.nixos.org/build/3016700
This commit is contained in:
Eelco Dolstra 2012-09-11 14:45:42 -04:00
parent d3004c78d9
commit 295027f533
2 changed files with 4 additions and 2 deletions

View file

@ -1,10 +1,10 @@
#pragma once #pragma once
#include <map>
#include "types.hh" #include "types.hh"
#include "hash.hh" #include "hash.hh"
#include <map>
namespace nix { namespace nix {

View file

@ -1,5 +1,7 @@
#pragma once #pragma once
#include "config.h"
#include <string> #include <string>
#include <list> #include <list>
#include <set> #include <set>