summaryrefslogtreecommitdiff
path: root/libmenu
diff options
context:
space:
mode:
authorSvante Signell <[email protected]>2014-09-23 13:18:16 +0200
committerStefano Karapetsas <[email protected]>2014-09-23 13:18:16 +0200
commitf94dfd44be0761239a2e5874cea9017236b73e17 (patch)
tree97e08680d4b0b5578ad1f98575079728d0c593d8 /libmenu
parent186ac96e71cee7ff757c10a25df0bf4e3da48d2b (diff)
downloadmate-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')
-rw-r--r--libmenu/canonicalize.c4
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