File: portable_maxpathlen

package info (click to toggle)
lprng 3.8.B-9
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,768 kB
  • sloc: ansic: 35,071; sh: 3,040; perl: 1,896; makefile: 379
file content (24 lines) | stat: -rw-r--r-- 958 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Define MAXPATHLEN for Hurd-i386
 lprng currently FTBFS on hurd-i386, because MAXPATHLEN is not defined
 for GNU/Hurd. POSIX says it is optional when there is no hard limit.
 The inlined patch below defines that value to 4096 for GNU. Since lprng
 does not seen to be the Debian default, cups is, this small patch can
 be used to make lprng available until all cups tests are OK for Hurd.
Author: Svante Signell <svante.signell@telia.com>
Reviewed-by: Craig Small <csmall@debian.org>
Bug-Debian: http://bugs.debian.org/671848
--- a/src/include/portable.h
+++ b/src/include/portable.h
@@ -152,6 +152,12 @@
 #endif
 
 /*************************************************************************/
+#if defined(__GNU__)
+# define IS_GNU OSVERSION
+# define MAXPATHLEN 4096
+#endif
+
+/*************************************************************************/
 
 #if defined(__convex__) /* Convex OS 11.0 - from w_stef */
 # define IS_CONVEX OSVERSION