From 869de2e34b6344a82bb93ed2d38bd1cf5630a4f9 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 13 Feb 2009 20:10:21 +0000 Subject: Bug 563382 - Define PATH_MAX if not available This fixes the build on Hurd. If anyone ever actually uses Hurd with filenames longer than 4096, they can open a new bug. --- diff --git a/giscanner/grealpath.h b/giscanner/grealpath.h index 82d482a..f5af7cb 100644 --- a/giscanner/grealpath.h +++ b/giscanner/grealpath.h @@ -13,6 +13,9 @@ static inline gchar* g_realpath (const char *path) { #ifndef _WIN32 +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif char buffer [PATH_MAX]; if (realpath(path, buffer)) return g_strdup(buffer); -- cgit v0.9.1