projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]:
[gnulib.git]
/
lib
/
same.c
diff --git
a/lib/same.c
b/lib/same.c
index
cdf6452
..
beb75c4
100644
(file)
--- a/
lib/same.c
+++ b/
lib/same.c
@@
-36,9
+36,16
@@
extern int errno;
#endif
extern int errno;
#endif
+#if HAVE_STRING_H
+# include <string.h>
+#else
+# include <strings.h>
+#endif
+
#include "same.h"
#include "dirname.h"
#include "error.h"
#include "same.h"
#include "dirname.h"
#include "error.h"
+#include "xalloc.h"
#if ENABLE_NLS
# include <libintl.h>
#if ENABLE_NLS
# include <libintl.h>
@@
-50,7
+57,7
@@
extern int errno;
#define STREQ(a, b) (strcmp ((a), (b)) == 0)
#ifndef HAVE_DECL_FREE
#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 ();
#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)
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))
{
if (stat (source_dirname, &source_dir_stats))
{