From 139503e24964abb4c68ad8e800dbb3a57b967662 Mon Sep 17 00:00:00 2001
From: Bertrand Bellenot <bertrand.bellenot@cern.ch>
Date: Wed, 7 Feb 2018 15:08:02 +0100
Subject: [PATCH] Get rid of "/cygdrive/" prefix on Windows native

---
 build/rmkdepend/pr.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/build/rmkdepend/pr.c b/build/rmkdepend/pr.c
index af8a4a06314..ef00abc84c4 100644
--- a/build/rmkdepend/pr.c
+++ b/build/rmkdepend/pr.c
@@ -109,12 +109,18 @@ char *file, *base, *dep;
          ipifile[1] = ipifile[0];
          ipifile[0] = '/';
       } else {
+#ifdef _MSC_VER
+         /* native Windows */
+         ipifile = malloc(len);
+         strcpy(ipifile, ip->i_file);
+#else
          /* generic cygwin */
          ipifile = malloc(len + 11);
          strcpy(ipifile, "/cygdrive/");
          ipifile[10] = ip->i_file[0];
          strcpy(ipifile + 11, ip->i_file + 2);
          len += 9;
+#endif
       }
    } else ipifile = ip->i_file;
 
-- 
GitLab