--- /dev/null
+--- 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. */
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. */