1 #include "common/agent.c" 2 3 /* XXX 4 * Gdb wants to use its internal fnmatch that does wide characters overriding 5 * the one from libiberty. This is madness, let's use ours! 6 */ 7 extern "C" int 8 gnu_fnmatch(const char *pattern, const char *string, int flags) 9 { 10 return fnmatch(pattern, string, flags); 11 } 12 13 /* 14 * According to the manual page canonicalize_file_name() is equivalent 15 * realpath(3) so use that. 16 */ 17 extern "C" char * 18 canonicalize_file_name(const char *fn) 19 { 20 return realpath(fn, NULL); 21 } 22