X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fsame.c;h=beb75c44edb078bf81a2ddac3c8a575379a7f1ce;hb=2c7648b6f92dd6a6dbb3fc72896b8500d525ccb1;hp=930ca0b2f7fccfaabc9467aaee418756c899a982;hpb=682d4570b676292520ba94dab161c1a50f51540e;p=gnulib.git diff --git a/lib/same.c b/lib/same.c index 930ca0b2f..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,6 +57,9 @@ extern int errno; #define STREQ(a, b) (strcmp ((a), (b)) == 0) #ifndef HAVE_DECL_FREE +"this configure-time declaration test was not run" +#endif +#if !HAVE_DECL_FREE void free (); #endif @@ -72,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)) {