From: Jim Meyering Date: Sat, 30 Jul 1994 16:12:44 +0000 (+0000) Subject: . X-Git-Tag: textutils-1_12_1~639 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15ddd652be4aa1dfb1f9d198dcada21ec964cd7e;p=thirdparty%2Fcoreutils.git . --- diff --git a/src/cp-hash.c b/src/cp-hash.c index a0afcfcf35..5204d13682 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 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 +#else +#include "config.h" +#endif +#endif + #include #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;