From 3591e7ff44a9f098eb28d36bf03ad0495e08dfb2 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Sat, 17 Aug 2019 11:05:57 +0100 Subject: [PATCH] configure: check for realpath function now MSYS2 has it Fixes #2261. --- configure.ac | 2 +- src/tagmanager/tm_source_file.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a933b8061d..a6e7051f1d 100644 --- a/configure.ac +++ b/configure.ac @@ -52,7 +52,7 @@ AC_TYPE_SIZE_T AC_STRUCT_TM # Checks for library functions. -AC_CHECK_FUNCS([fgetpos fnmatch mkstemp strerror strstr]) +AC_CHECK_FUNCS([fgetpos fnmatch mkstemp strerror strstr realpath]) # Function checks for u-ctags AC_CHECK_FUNCS([strcasecmp stricmp], [break]) diff --git a/src/tagmanager/tm_source_file.c b/src/tagmanager/tm_source_file.c index ccbd3aef7a..41e5a214f1 100644 --- a/src/tagmanager/tm_source_file.c +++ b/src/tagmanager/tm_source_file.c @@ -84,7 +84,7 @@ static int get_path_max(const char *path) } -#ifdef G_OS_WIN32 +#if defined(G_OS_WIN32) && !defined(HAVE_REALPATH) /* realpath implementation for Windows found at http://bugzilla.gnome.org/show_bug.cgi?id=342926 * this one is better than e.g. liberty's lrealpath because this one uses Win32 API and works * with special chars within the filename */