[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 09:36:21 CDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7293

           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 LLVMbugs mailing list