diff options
author | Jim Meyering <jim@meyering.net> | 1994-07-30 16:12:44 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-07-30 16:12:44 +0000 |
commit | 15ddd652be4aa1dfb1f9d198dcada21ec964cd7e (patch) | |
tree | f80b13c2769dfe4ac088519771f806db7e45d604 | |
parent | 2c4f4e60d877b3498a7fcc4c05051ef720892611 (diff) | |
download | coreutils-15ddd652be4aa1dfb1f9d198dcada21ec964cd7e.tar.xz |
.
-rw-r--r-- | src/cp-hash.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/cp-hash.c b/src/cp-hash.c index a0afcfcf3..5204d1368 100644 --- a/src/cp-hash.c +++ b/src/cp-hash.c @@ -17,8 +17,20 @@ Written by Torbjorn Granlund, Sweden (tege@sics.se). */ +#ifdef HAVE_CONFIG_H +#if defined (CONFIG_BROKETS) +/* We use <config.h> instead of "config.h" so that a compilation + using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h + (which it would do because it found this file in $srcdir). */ +#include <config.h> +#else +#include "config.h" +#endif +#endif + #include <stdio.h> #include "cp.h" +#include "safe-stat.h" char *hash_insert (); char *hash_insert2 (); @@ -35,7 +47,7 @@ remember_created (path) { struct stat sb; - if (stat (path, &sb) < 0) + if (SAFE_STAT (path, &sb) < 0) { error (0, errno, "%s", path); return 1; |