[gimp] Bug 635038 - Fails to build on GNU/Hurd
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 635038 - Fails to build on GNU/Hurd
- Date: Mon, 21 Mar 2011 22:40:49 +0000 (UTC)
commit 28aa26fb281d3d4c0bb5b674fb10ca901bf81071
Author: Michael Natterer <mitch gimp org>
Date: Mon Mar 21 23:40:05 2011 +0100
Bug 635038 - Fails to build on GNU/Hurd
Apply patch from Ari Pollak that tries harder to get a value for
PATH_MAX.
plug-ins/common/qbist.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/qbist.c b/plug-ins/common/qbist.c
index 611e97e..4be69ba 100644
--- a/plug-ins/common/qbist.c
+++ b/plug-ins/common/qbist.c
@@ -40,8 +40,14 @@
#include "libgimp/stdplugins-intl.h"
-#if ! defined PATH_MAX && defined _MAX_PATH
-# define PATH_MAX _MAX_PATH
+#if ! defined PATH_MAX
+# if defined _MAX_PATH
+# define PATH_MAX _MAX_PATH
+# elif defined MAXPATHLEN
+# define PATH_MAX MAXPATHLEN
+# else
+# define PATH_MAX 1024
+# endif
#endif
/** qbist renderer ***********************************************************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]