X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsame.c;h=beb75c44edb078bf81a2ddac3c8a575379a7f1ce;hb=be888b85ebe1d2e8c04a2dfc28144e164ba02865;hp=1cfb69322c939c22912da9ab73ff598daf57d268;hpb=de1b0c616f4497865334c973236206a7d391fd23;p=gnulib.git diff --git a/lib/same.c b/lib/same.c index 1cfb69322..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 @@ -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)) {