File: 0110-path_max.patch

package info (click to toggle)
simutrans 123.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 21,744 kB
  • sloc: cpp: 153,752; makefile: 954; sh: 757; ansic: 578
file content (21 lines) | stat: -rw-r--r-- 492 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: add define for PATH_MAX if not defined
Author: Jörg Frings-Fürst <debian@jff.email>
Last-Update: 2023-02-18
Forwarded: not-needed
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: trunk/sys/simsys.cc
===================================================================
--- trunk.orig/sys/simsys.cc
+++ trunk/sys/simsys.cc
@@ -58,6 +58,10 @@
 
 sys_event_t sys_event;
 
+#if !defined PATH_MAX
+    #define PATH_MAX 4096
+#endif
+
 
 #ifdef _WIN32
 /**