diff options
-rw-r--r-- | libmenu/canonicalize.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmenu/canonicalize.c b/libmenu/canonicalize.c index cd2b75a..1a29ae9 100644 --- a/libmenu/canonicalize.c +++ b/libmenu/canonicalize.c @@ -33,6 +33,10 @@ #include <errno.h> #include <stddef.h> +#ifndef MAXSYMLINKS +#define MAXSYMLINKS sysconf(_SC_SYMLOOP_MAX) +#endif + /* Return the canonical absolute name of file NAME. A canonical name does not contain any `.', `..' components nor any repeated path separators ('/') or symlinks. All path components must exist. If |