Some systems (Hurd) don't define PATH_MAX (which is optional according
to POSIX). Make sure it is defined and no special linux specific
headers are used in debuginfod-client.c.
* debuginfod/debuginfod-client.c: Include limits.h instead of
linux/limits. If PATH_MAX isn't define it to 4K (the default
on GNU/Linux).
https://sourceware.org/bugzilla/show_bug.cgi?id=34016
Signed-off-by: Mark Wielaard <mark@klomp.org>
#include <regex.h>
#include <string.h>
#include <stdbool.h>
-#include <linux/limits.h>
+#include <limits.h>
#include <time.h>
#include <utime.h>
#include <sys/syscall.h>
#include <fnmatch.h>
#include <json-c/json.h>
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
/* If fts.h is included before config.h, its indirect inclusions may not
give us the right LFS aliases of these functions, so map them manually. */
#ifdef BAD_FTS