2 * SPDX-License-Identifier: GPL-3.0-or-later
14 notmuch_canonicalize_file_name (const char *path)
16 #if HAVE_CANONICALIZE_FILE_NAME
17 return canonicalize_file_name (path);
18 #elif defined(PATH_MAX)
19 char *resolved_path = malloc (PATH_MAX + 1);
20 if (resolved_path == NULL)
23 return realpath (path, resolved_path);
25 #error undefined PATH_MAX _and_ missing canonicalize_file_name not supported