From: Debian Med Packaging Team Date: Sat, 14 Jan 2017 18:23:52 +0000 (+0000) Subject: define_PATH_MAX X-Git-Tag: archive/raspbian/1.3.2-2+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0925430c66a24858240f6f802c3d74cba7299587;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.