From bd46400d1fadde48fb2afe5f16fdd7458e508fe1 Mon Sep 17 00:00:00 2001 From: Debian Med Packaging Team Date: Tue, 29 Nov 2016 02:43:40 +0000 Subject: [PATCH] define_PATH_MAX Gbp-Pq: Name define_PATH_MAX.patch --- cram/open_trace_file.c | 3 --- cram/os.h | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) 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. -- 2.30.2