Title: [109509] trunk/Tools
- Revision
- 109509
- Author
- [email protected]
- Date
- 2012-03-01 22:26:10 -0800 (Thu, 01 Mar 2012)
Log Message
WebKitTestRunner: Explicitly include unistd.h for gcc 4.7
https://bugs.webkit.org/show_bug.cgi?id=80033
Patch by Kalev Lember <[email protected]> on 2012-03-01
Reviewed by Gustavo Noronha Silva.
GCC 4.7 no longer includes unistd.h from most of the standard C++
header files, so we need to explicitly include it for getcwd().
* WebKitTestRunner/TestInvocation.cpp: Make sure unistd.h gets included
not only on Mac, but on all Unix platforms.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (109508 => 109509)
--- trunk/Tools/ChangeLog 2012-03-02 06:13:51 UTC (rev 109508)
+++ trunk/Tools/ChangeLog 2012-03-02 06:26:10 UTC (rev 109509)
@@ -1,3 +1,16 @@
+2012-03-01 Kalev Lember <[email protected]>
+
+ WebKitTestRunner: Explicitly include unistd.h for gcc 4.7
+ https://bugs.webkit.org/show_bug.cgi?id=80033
+
+ Reviewed by Gustavo Noronha Silva.
+
+ GCC 4.7 no longer includes unistd.h from most of the standard C++
+ header files, so we need to explicitly include it for getcwd().
+
+ * WebKitTestRunner/TestInvocation.cpp: Make sure unistd.h gets included
+ not only on Mac, but on all Unix platforms.
+
2012-03-01 Dirk Pranke <[email protected]>
Actually look at the args in driver_input :(.
Modified: trunk/Tools/WebKitTestRunner/TestInvocation.cpp (109508 => 109509)
--- trunk/Tools/WebKitTestRunner/TestInvocation.cpp 2012-03-02 06:13:51 UTC (rev 109508)
+++ trunk/Tools/WebKitTestRunner/TestInvocation.cpp 2012-03-02 06:26:10 UTC (rev 109509)
@@ -42,12 +42,10 @@
#include <direct.h> // For _getcwd.
#define getcwd _getcwd // MSDN says getcwd is deprecated.
#define PATH_MAX _MAX_PATH
+#else
+#include <unistd.h> // For getcwd.
#endif
-#if PLATFORM(MAC)
-#include <unistd.h>
-#endif
-
using namespace WebKit;
using namespace std;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes