From: Pino Toscano Date: Sun, 1 Nov 2020 10:07:23 +0000 (+0100) Subject: raw-identify: use fallback if PATH_MAX not available X-Git-Tag: archive/raspbian/0.21.2-2.1+rpi1~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ab4a2fee7dcea2670f2cf18b0e627c5c326302f2;p=libraw.git raw-identify: use fallback if PATH_MAX not available PATH_MAX is optional in POSIX, so define a fallback value if not available. While ideally it should not be relied upon, a fallback value is enough for a sample application. Gbp-Pq: Name 0002-raw-identify-use-fallback-if-PATH_MAX-not-available.patch --- diff --git a/samples/raw-identify.cpp b/samples/raw-identify.cpp index ced5181..31c770d 100644 --- a/samples/raw-identify.cpp +++ b/samples/raw-identify.cpp @@ -40,7 +40,11 @@ it under the terms of the one of two licenses as you choose: #include #include #ifndef MAX_PATH +#ifdef PATH_MAX #define MAX_PATH PATH_MAX +#else +#define MAX_PATH 4096 +#endif #endif #endif