File: 04-path-max.patch

package info (click to toggle)
kakoune 2022.10.31-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,068 kB
  • sloc: cpp: 31,090; sh: 237; makefile: 179; python: 144; ruby: 60
file content (18 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Define PATH_MAX to 1024 on e.g. the GNU Hurd.
Forwarded: no
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2017-01-04

--- a/src/file.hh
+++ b/src/file.hh
@@ -12,6 +12,10 @@
 #include <sys/stat.h>
 #include <cstring>
 
+#ifndef PATH_MAX
+#define PATH_MAX	1024
+#endif
+
 namespace Kakoune
 {