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