]> git.donarmstrong.com Git - lilypond.git/blob - debian/patches/hurd_file_name_support
move hurd support to a quilt patch
[lilypond.git] / debian / patches / hurd_file_name_support
1 --- lilypond-2.18.0.orig/flower/file-name.cc
2 +++ lilypond-2.18.0/flower/file-name.cc
3 @@ -96,9 +96,13 @@
4  string
5  get_working_directory ()
6  {
7 +#ifdef _GNU_SOURCE_
8 +  return string (get_current_dir_name());
9 +#else
10    char cwd[PATH_MAX];
11    // getcwd returns NULL upon a failure, contents of cwd would be undefined!
12    return string (getcwd (cwd, PATH_MAX));
13 +#endif
14  }
15  
16  /* Join components to full file_name. */