Package: lilypond / 2.18.2-4

hurd_file_name_support Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Hurd build without PATH_MAX; currently broken
Forwarded: not-needed
Origin: vendor
Author: Don Armstrong <don@debian.org>
--- lilypond-2.18.0.orig/flower/file-name.cc
+++ lilypond-2.18.0/flower/file-name.cc
@@ -96,9 +96,13 @@
 string
 get_working_directory ()
 {
+#ifdef _GNU_SOURCE_
+  return string (get_current_dir_name());
+#else
   char cwd[PATH_MAX];
   // getcwd returns NULL upon a failure, contents of cwd would be undefined!
   return string (getcwd (cwd, PATH_MAX));
+#endif
 }
 
 /* Join components to full file_name. */