]> git.donarmstrong.com Git - lilypond.git/commitdiff
Patch around using PATH_MAX in flower/file-name.cc to have builds work on hurd (hopef... debian/2.16.2-2
authorDon Armstrong <don@donarmstrong.com>
Thu, 16 May 2013 18:46:43 +0000 (11:46 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 16 May 2013 18:46:43 +0000 (11:46 -0700)
debian/changelog
flower/file-name.cc

index 7463e562d1dd3bb75364169a54b352a3d983db3b..c47b10a7fd6fae787d6bd2023d8b5f53df9a221d 100644 (file)
@@ -2,6 +2,8 @@ lilypond (2.16.2-2) unstable; urgency=low
 
   * Fix bad syntax in texinfo documentation exposed by texinfo >= 5.1
     (closes: #707190)
+  * Patch around using PATH_MAX in flower/file-name.cc to have builds work
+    on hurd (hopefully).
 
  -- Don Armstrong <don@debian.org>  Wed, 15 May 2013 11:40:14 -0700
 
index c24c0731e4f237bccba2ac3dd1d0b8b450210a19..b2a8c2b54f5aab0f4ea39e8af746558dd741764a 100644 (file)
@@ -96,9 +96,13 @@ dir_name (string const 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. */