summaryrefslogtreecommitdiff
path: root/make.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2005-06-25 23:00:17 +0000
committerPaul Smith <psmith@gnu.org>2005-06-25 23:00:17 +0000
commitf388233b033ccae26e567fb573fd3d7a87c71744 (patch)
tree1c51defb3a7e907880bb538ce9fd19bf6333d7d2 /make.h
parent6cdaff0948bbec3220d5cb071f79d5f2e1c9b083 (diff)
downloadgunmake-f388233b033ccae26e567fb573fd3d7a87c71744.tar.gz
Fix Savannah bug # 13478. If -L is given, take the latest mtime for a
symlink even if it is "dangling" (it doesn't resolve to a real file).
Diffstat (limited to 'make.h')
-rw-r--r--make.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/make.h b/make.h
index 20ee569..55682d8 100644
--- a/make.h
+++ b/make.h
@@ -358,6 +358,11 @@ extern int strcmpi (const char *,const char *);
# define PATH_SEPARATOR_CHAR ':'
#endif
+/* This is needed for getcwd() and chdir(). */
+#if defined(_MSC_VER) || defined(__BORLANDC__)
+# include <direct.h>
+#endif
+
#ifdef WINDOWS32
# include <fcntl.h>
# include <malloc.h>
@@ -481,7 +486,7 @@ extern long int lseek ();
#ifdef HAVE_GETCWD
# if !defined(VMS) && !defined(__DECC)
extern char *getcwd ();
-#endif
+# endif
#else
extern char *getwd ();
# define getcwd(buf, len) getwd (buf)