File: platform-quirks.diff

package info (click to toggle)
tmux 3.6a-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,508 kB
  • sloc: ansic: 72,681; sh: 1,813; yacc: 1,483; awk: 339; makefile: 235; perl: 41
file content (24 lines) | stat: -rw-r--r-- 494 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
22
23
24
Description: Platform-specific fixes
 * Define PATH_MAX, MAX_IOV for Hurd.
Author: Karl Ferdinand Ebert <kfebert@gmail.com>
Author: Romain Francoise <rfrancoise@debian.org>
Bug-Debian: http://bugs.debian.org/609333
Forwarded: not-needed

--- a/compat.h
+++ b/compat.h
@@ -294,6 +294,14 @@
 int		 getdtablesize(void);
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
+#ifndef IOV_MAX
+#define IOV_MAX	1024
+#endif
+
 #ifndef HAVE_CLOSEFROM
 /* closefrom.c */
 void		 closefrom(int);