File: path-max.patch

package info (click to toggle)
libconfig 1.7.3-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,792 kB
  • sloc: sh: 12,424; ansic: 5,406; cpp: 870; yacc: 329; makefile: 201; lex: 179; ruby: 7
file content (20 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: define PATH_MAX when its not defined
 This fixes FTBFS on GNU/Hurd
Author: Mohammed Bilal <rmb@debian.org>
Forwarded: https://github.com/hyperrealm/libconfig/issues/252
Last-Update: 2025-01-17
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/examples/c/example4.c
+++ b/examples/c/example4.c
@@ -30,6 +30,10 @@
 
 #include <libconfig.h>
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 /* This example reads the configuration file 'example.cfg' and displays
  * some of its contents.
  */