summaryrefslogtreecommitdiff
path: root/gnulib/import/getcwd-lgpl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/import/getcwd-lgpl.c')
-rw-r--r--gnulib/import/getcwd-lgpl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnulib/import/getcwd-lgpl.c b/gnulib/import/getcwd-lgpl.c
index fca6bdefd34..e8c9e08cb33 100644
--- a/gnulib/import/getcwd-lgpl.c
+++ b/gnulib/import/getcwd-lgpl.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
+/* Copyright (C) 2011-2021 Free Software Foundation, Inc.
This file is part of gnulib.
This program is free software: you can redistribute it and/or modify
@@ -38,6 +38,10 @@ typedef int dummy;
necessary. */
# undef getcwd
+# if defined _WIN32 && !defined __CYGWIN__
+# define getcwd _getcwd
+# endif
+
char *
rpl_getcwd (char *buf, size_t size)
{