File: path-max.patch

package info (click to toggle)
libhangul 0.1.0%2Bgit20170815-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 11,376 kB
  • sloc: ansic: 8,295; python: 627; xml: 394; makefile: 164; ruby: 24; sh: 12
file content (21 lines) | stat: -rw-r--r-- 547 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: define PATH_MAX if undefined
 Define PATH_MAX if it is undefined, like in GNU Hurd.
Author: Changwoo Ryu <cwryu@debian.org>
Bug: https://github.com/choehwanjin/libhangul/issues/24
Forwarded: yes

diff --git a/hangul/hangulkeyboard.c b/hangul/hangulkeyboard.c
index 53b9d74..2be6ba4 100644
--- a/hangul/hangulkeyboard.c
+++ b/hangul/hangulkeyboard.c
@@ -24,6 +24,10 @@
 #include <string.h>
 #include <limits.h>
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 #if ENABLE_EXTERNAL_KEYBOARDS
 #include <locale.h>
 #include <glob.h>