From: Debian Med Packaging Team Date: Fri, 4 Nov 2016 11:58:19 +0000 (+0000) Subject: define_PATH_MAX X-Git-Tag: archive/raspbian/1.3.2-2+rpi1~1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ddd2c5d03b80c2f02607f37d7f368d1df1297f61;p=htslib.git define_PATH_MAX Gbp-Pq: Name define_PATH_MAX.patch --- diff --git a/cram/open_trace_file.c b/cram/open_trace_file.c index 62f4087..07adc09 100644 --- a/cram/open_trace_file.c +++ b/cram/open_trace_file.c @@ -72,9 +72,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include #include "cram/os.h" -#ifndef PATH_MAX -# define PATH_MAX 1024 -#endif #include "cram/open_trace_file.h" #include "cram/misc.h" diff --git a/cram/os.h b/cram/os.h index 22d8096..88f3dff 100644 --- a/cram/os.h +++ b/cram/os.h @@ -153,6 +153,13 @@ extern "C" { #endif +/* + * in case PATH_MAX is not defined (like in hurd) + */ +#ifndef PATH_MAX +# define PATH_MAX 1024 +#endif + /*----------------------------------------------------------------------------- * Allow for unaligned memory access. This is used in BAM code as the packed * structure has 4-byte cigar ints after the variable length name.