diff --git a/libgimpbase/gimpreloc.c b/libgimpbase/gimpreloc.c index 7ed1783b3c7d5b78ba55ed97427c676bfa98e9b4..dec6ea769f49d3896a922563c3db7db8bd8337a2 100644 --- a/libgimpbase/gimpreloc.c +++ b/libgimpbase/gimpreloc.c @@ -27,6 +27,9 @@ #include "gimpreloc.h" +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif /* * Find the canonical filename of the executable. Returns the filename diff --git a/plug-ins/common/qbist.c b/plug-ins/common/qbist.c index c1bcdf21227acedf777914acbacfdd441a65ae37..0611a8aa87c8828e5c50782f0f97233d7c98048a 100644 --- a/plug-ins/common/qbist.c +++ b/plug-ins/common/qbist.c @@ -38,6 +38,9 @@ #include "libgimp/stdplugins-intl.h" +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif #define MAX_TRANSFORMS 36 #define NUM_REGISTERS 6