This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH] winsup/cygwin: fix compile of path.cc after basename changes
- From: Yaakov Selkowitz <yselkowi at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 6 Jul 2015 14:41:26 -0500
- Subject: [PATCH] winsup/cygwin: fix compile of path.cc after basename changes
- Authentication-results: sourceware.org; auth=none
- References: <1436206232-9776-1-git-send-email-yselkowi at redhat dot com>
---
winsup/cygwin/path.cc | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 446d746..5eb076f 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -48,7 +48,7 @@
c: means c:\.
*/
-#define _BASENAME_DEFINED
+#define basename basename
#include "winsup.h"
#include "miscfuncs.h"
#include <ctype.h>
@@ -70,6 +70,7 @@
#include <ntdll.h>
#include <wchar.h>
#include <wctype.h>
+#undef basename
suffix_info stat_suffixes[] =
{
@@ -4739,8 +4740,6 @@ out:
return buf;
}
-#undef basename
-
/* No need to be reentrant or thread-safe according to SUSv3.
/ and \\ are treated equally. Leading drive specifiers are
kept intact as far as it makes sense. Everything else is
--
2.4.4