diff options
Diffstat (limited to 'compat/compat.h')
-rw-r--r-- | compat/compat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compat/compat.h b/compat/compat.h index 5a402d5c..634d505b 100644 --- a/compat/compat.h +++ b/compat/compat.h @@ -37,6 +37,14 @@ extern "C" { #define _POSIX_PTHREAD_SEMANTICS 1 #endif +#if !HAVE_CANONICALIZE_FILE_NAME +/* we only call this function from C, and this makes testing easier */ +#ifndef __cplusplus +char * +canonicalize_file_name (const char *path); +#endif +#endif + #if !HAVE_GETLINE #include <stdio.h> #include <unistd.h> |