[GTK] GlibUtilities: getCurrentExecutablePath() does not compile on GNU/Hurd
authorberto@igalia.com <berto@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Sep 2013 16:48:44 +0000 (16:48 +0000)
committerberto@igalia.com <berto@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Sep 2013 16:48:44 +0000 (16:48 +0000)
https://bugs.webkit.org/show_bug.cgi?id=120793

Reviewed by Gustavo Noronha Silva.

Original patch by Svante Signell <svante.signell@telia.com>.

PATH_MAX is not defined in GNU/Hurd, this patch adds a dummy
implementation to make it compile.

* wtf/gobject/GlibUtilities.cpp:
(getCurrentExecutablePath):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@155193 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WTF/ChangeLog
Source/WTF/wtf/gobject/GlibUtilities.cpp

index 7114fec057990e13be76f6993ab559635ad08c89..508beb7d0f5a6a7c480bcec8eed63b620874d5d9 100644 (file)
@@ -1,3 +1,18 @@
+2013-09-06  Alberto Garcia  <berto@igalia.com>
+
+        [GTK] GlibUtilities: getCurrentExecutablePath() does not compile on GNU/Hurd
+        https://bugs.webkit.org/show_bug.cgi?id=120793
+
+        Reviewed by Gustavo Noronha Silva.
+
+        Original patch by Svante Signell <svante.signell@telia.com>.
+
+        PATH_MAX is not defined in GNU/Hurd, this patch adds a dummy
+        implementation to make it compile.
+
+        * wtf/gobject/GlibUtilities.cpp:
+        (getCurrentExecutablePath):
+
 2013-09-05  Dan Bernstein  <mitz@apple.com>
 
         INSTALL_PATH_PREFIX is used even when not installing
index 1a2a8b1f134e89b33a3865ab10b84ad37ce3b106..f08e33345547de8d58b86916e5918d4799a57e96 100644 (file)
@@ -37,6 +37,11 @@ CString getCurrentExecutablePath()
         return CString();
     return CString(readLinkBuffer, result);
 }
+#elif OS(HURD)
+CString getCurrentExecutablePath()
+{
+    return CString();
+}
 #elif OS(UNIX)
 CString getCurrentExecutablePath()
 {