summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-08-12 16:07:33 +0100
committerRichard Hughes <richard@hughsie.com>2017-08-13 10:28:18 +0100
commit4c5118e78b272897cf99c4f79e6577077d73b205 (patch)
tree0dbeb3219970bad18b7dbd254eb587fff3b22aab
parentc040e3809fdad7f7f042cfb471d72d866a5f345e (diff)
downloadcolord-4c5118e78b272897cf99c4f79e6577077d73b205.tar.gz
Define PATH_MAX if not available
PATH_MAX is not standard, and it's definitely not defined in limits.h, even if we include it twice to be sure. Let's get a fallback in place.
-rw-r--r--lib/colord/cd-test-shared.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/colord/cd-test-shared.c b/lib/colord/cd-test-shared.c
index 0bf7115..325102f 100644
--- a/lib/colord/cd-test-shared.c
+++ b/lib/colord/cd-test-shared.c
@@ -23,12 +23,15 @@
#include <limits.h>
#include <stdlib.h>
-#include <limits.h>
#include <glib.h>
#include "cd-test-shared.h"
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
gchar *
cd_test_get_filename (const gchar *filename)
{