Changeset 109509 in webkit


Ignore:
Timestamp:
Mar 1, 2012 10:26:10 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

WebKitTestRunner: Explicitly include unistd.h for gcc 4.7
https://bugs.webkit.org/show_bug.cgi?id=80033

Patch by Kalev Lember <kalevlember@gmail.com> 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.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r109498 r109509  
     12012-03-01  Kalev Lember  <kalevlember@gmail.com>
     2
     3        WebKitTestRunner: Explicitly include unistd.h for gcc 4.7
     4        https://bugs.webkit.org/show_bug.cgi?id=80033
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        GCC 4.7 no longer includes unistd.h from most of the standard C++
     9        header files, so we need to explicitly include it for getcwd().
     10
     11        * WebKitTestRunner/TestInvocation.cpp: Make sure unistd.h gets included
     12        not only on Mac, but on all Unix platforms.
     13
    1142012-03-01  Dirk Pranke  <dpranke@chromium.org>
    215
  • trunk/Tools/WebKitTestRunner/TestInvocation.cpp

    r107776 r109509  
    4343#define getcwd _getcwd // MSDN says getcwd is deprecated.
    4444#define PATH_MAX _MAX_PATH
    45 #endif
    46 
    47 #if PLATFORM(MAC)
    48 #include <unistd.h>
     45#else
     46#include <unistd.h> // For getcwd.
    4947#endif
    5048
Note: See TracChangeset for help on using the changeset viewer.