1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 19:01:16 +02:00

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