[LLVMbugs] [Bug 7293] New: Missing #include<unistd.h> in googletest header file

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 3 07:36:21 PDT 2010


           Summary: Missing #include<unistd.h> in googletest header file
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: reeuwijk at few.vu.nl
                CC: llvmbugs at cs.uiuc.edu

The file utils/unittest/googletest/include/gtest/internal/gtest-port.h uses the
functions 'isatty()' and 'rmdir()'. The declarations for these functions are in
unistd.h (according to their man pages on a recent Ubuntu system). However,
gtest-port.h does not #include <unistd.h>.

The missing #include causes compilation problems on Minix3.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list