Doh
This commit is contained in:
parent
7b10562370
commit
234ce610e0
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include "util.hh"
|
#include "util.hh"
|
||||||
#include "local-store.hh"
|
#include "local-store.hh"
|
||||||
#include "immutable.hh"
|
#include "immutable.hh"
|
||||||
|
@ -67,7 +69,6 @@ void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path)
|
||||||
/* We can hard link regular files and maybe symlinks. */
|
/* We can hard link regular files and maybe symlinks. */
|
||||||
if (!S_ISREG(st.st_mode)
|
if (!S_ISREG(st.st_mode)
|
||||||
#if CAN_LINK_SYMLINK
|
#if CAN_LINK_SYMLINK
|
||||||
x
|
|
||||||
&& !S_ISLNK(st.st_mode)
|
&& !S_ISLNK(st.st_mode)
|
||||||
#endif
|
#endif
|
||||||
) return;
|
) return;
|
||||||
|
|
Loading…
Reference in a new issue