From ca21147618240b2df107f184413c6a9aaefaf7c0 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Mon, 30 Jan 2006 10:57:00 +0000 Subject: - Allow backup-files to build on windows using the MinGW compiler. --- lib/backup-files.c | 11 +++++++++++ quilt.changes | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/lib/backup-files.c b/lib/backup-files.c index d2979d0..268fb49 100644 --- a/lib/backup-files.c +++ b/lib/backup-files.c @@ -50,6 +50,17 @@ # define PATH_MAX 4096 #endif +#ifdef __MINGW32__ +#define mkdir(x,y) mkdir(x) +/* Symlinks are not supported */ +#define lstat stat +static int link(const char *oldpath, const char *newpath) +{ + errno = ENOSYS; + return -1; +} +#endif + const char *progname; enum { what_noop, what_backup, what_restore, what_remove }; diff --git a/quilt.changes b/quilt.changes index 87afa0a..2b175ac 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 30 11:52:00 CET 2006 - agruen@suse.de + +- Allow backup-files to build on windows using the MinGW compiler. + ------------------------------------------------------------------- Mon Jan 30 11:46:21 CET 2006 - jayvdb@gmail.com -- cgit