X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsame.c;h=beb75c44edb078bf81a2ddac3c8a575379a7f1ce;hb=c3c259f0bef8cfd8d47606475348f088f7b0e120;hp=cdf6452b23bc9caeead4ba04870d1aab8f760372;hpb=d9f6701eb53b2c5ded7ca2fdd14093c941a6a803;p=gnulib.git diff --git a/lib/same.c b/lib/same.c index cdf6452b2..beb75c44e 100644 --- a/lib/same.c +++ b/lib/same.c @@ -36,9 +36,16 @@ extern int errno; #endif +#if HAVE_STRING_H +# include +#else +# include +#endif + #include "same.h" #include "dirname.h" #include "error.h" +#include "xalloc.h" #if ENABLE_NLS # include @@ -50,7 +57,7 @@ extern int errno; #define STREQ(a, b) (strcmp ((a), (b)) == 0) #ifndef HAVE_DECL_FREE -'this configure-time declaration test was not run' +"this configure-time declaration test was not run" #endif #if !HAVE_DECL_FREE void free (); @@ -75,7 +82,7 @@ same_name (const char *source, const char *dest) source_dirname = dir_name (source); dest_dirname = dir_name (dest); if (source_dirname == NULL || dest_dirname == NULL) - error (1, 0, _("virtual memory exhausted")); + xalloc_die (); if (stat (source_dirname, &source_dir_stats)) {