X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=compat%2Fcanonicalize_file_name.c;fp=compat%2Fcanonicalize_file_name.c;h=0000000000000000000000000000000000000000;hp=000f9e781573e92b50bef8708962bffa0e08f2d6;hb=441a327051f5357175029709030a0ee51131379d;hpb=62f03b6ab86bdc378198f9c1a86cb51ead289961 diff --git a/compat/canonicalize_file_name.c b/compat/canonicalize_file_name.c deleted file mode 100644 index 000f9e78..00000000 --- a/compat/canonicalize_file_name.c +++ /dev/null @@ -1,18 +0,0 @@ -#include "compat.h" -#include -#undef _GNU_SOURCE -#include - -char * -canonicalize_file_name (const char *path) -{ -#ifdef PATH_MAX - char *resolved_path = malloc (PATH_MAX + 1); - if (resolved_path == NULL) - return NULL; - - return realpath (path, resolved_path); -#else -#error undefined PATH_MAX _and_ missing canonicalize_file_name not supported -#endif -}