https://sourceware.org/bugzilla/show_bug.cgi?id=34016
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
We don't really need linux/limits.h, we can use limits.h instead.
It would be nice to use more dynamic path file lengths.
But a quick fix would be to just define it if it isn't defined by the system.
Would the following work for you?
diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c
index 659d6f91eb1d..fb9ad82f7f5d 100644
--- a/debuginfod/debuginfod-client.c
+++ b/debuginfod/debuginfod-client.c
@@ -99,7 +99,7 @@ void debuginfod_end (debuginfod_client *c) { }
#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>
@@ -110,6 +110,10 @@ void debuginfod_end (debuginfod_client *c) { }
#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
--
You are receiving this mail because:
You are on the CC list for the bug.