File: hurd-path-max-define

package info (click to toggle)
libhx 4.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,696 kB
  • sloc: ansic: 9,705; sh: 4,703; makefile: 135; cpp: 123
file content (21 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Add missing define of PATH_MAX for hurd.
Forwarded: not-needed
Last-Update: 2015-02-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: trunk/src/io.c
===================================================================
--- trunk.orig/src/io.c
+++ trunk/src/io.c
@@ -39,6 +39,11 @@
 #	define O_CLOEXEC 0
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096 /* Hurd does not define PATH_MAX in limits.h */
+#endif
+
+
 struct HXdir {
 #if defined _WIN32
 	char *dname;