diff options
author | Svante Signell <[email protected]> | 2014-09-23 13:18:16 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-09-23 13:18:16 +0200 |
commit | f94dfd44be0761239a2e5874cea9017236b73e17 (patch) | |
tree | 97e08680d4b0b5578ad1f98575079728d0c593d8 /libmenu/canonicalize.c | |
parent | 186ac96e71cee7ff757c10a25df0bf4e3da48d2b (diff) | |
download | mate-menus-f94dfd44be0761239a2e5874cea9017236b73e17.tar.bz2 mate-menus-f94dfd44be0761239a2e5874cea9017236b73e17.tar.xz |
Fix FTBFS on Debian/Hurd
Closes https://github.com/mate-desktop/mate-menus/issues/20
Diffstat (limited to 'libmenu/canonicalize.c')
-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 |