File: htslib_define_PATH_MAX.patch

package info (click to toggle)
genomicsdb 1.4.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 24,788 kB
  • sloc: cpp: 78,988; ansic: 58,119; java: 8,531; python: 2,270; sh: 1,850; perl: 1,621; makefile: 490; xml: 455
file content (25 lines) | stat: -rw-r--r-- 871 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Author: Andreas Tille <tille@debian.org>,
        Svante Signell <svante.signell@gmail.com>
Last-Uudate: Wed, 31 Aug 2016 12:14:45 +0200
Bug-Debian: https://bugs.debian.org/793512
            https://bugs.debian.org/836190
Description: Define PATH_MAX as it is done in cram/open_trace_file.c if
 not existent.  The definition should be removed from this C file since the
 header file affects all three C files where this definition is used.

--- a/genomicsdb-htslib/cram/os.h
+++ b/genomicsdb-htslib/cram/os.h
@@ -160,6 +160,13 @@ static inline uint16_t le_int2(uint16_t
 }
 #endif
 
+/*
+ * in case PATH_MAX is not defined (like in hurd)
+ */
+#ifndef PATH_MAX
+#  define PATH_MAX 1024
+#endif
+
 /*-----------------------------------------------------------------------------
  * Operating system specifics.
  * These ought to be done by autoconf, but are legacy code.